我有一个带有内联按钮样式的 NSPopUpButton。当鼠标进入、退出或鼠标向下或鼠标向上时,它会记录“未知边框样式 15 和/或控件尺寸 1”
15 是来自 NSButtonCell.h 的 NSInlineButtonStyle
typedef NS_ENUM(NSUInteger, NSBezelStyle) {
NSRoundedBezelStyle = 1,
NSRegularSquareBezelStyle = 2,
NSThickSquareBezelStyle = 3,
NSThickerSquareBezelStyle = 4,
NSDisclosureBezelStyle = 5,
NSShadowlessSquareBezelStyle = 6,
NSCircularBezelStyle = 7,
NSTexturedSquareBezelStyle = 8,
NSHelpButtonBezelStyle = 9,
NSSmallSquareBezelStyle = 10,
NSTexturedRoundedBezelStyle = 11,
NSRoundRectBezelStyle = 12,
NSRecessedBezelStyle = 13,
NSRoundedDisclosureBezelStyle = 14,
// The inline bezel style contains a solid round-rect border background. It can be used to create an "unread" indicator in an outline view, or another inline button in a tableview, such as a stop progress button in a download panel. Use text for an unread indicator, and a template image for other buttons.
NSInlineBezelStyle NS_ENUM_AVAILABLE_MAC(10_7) = 15,
NSSmallIconButtonBezelStyle NS_ENUM_DEPRECATED_MAC(10_0, 10_0) = 2 // This bezel style is obsolete and should not be used.
};
奇怪的是,一切都编译得很好,我在 Interface Builder 中设置了样式。除了这个控制台喷出之外,一切都很好。
我无法在文档或 NSButton、NSPopUpButton、NSButtonCell、NSPopUpButtonCell、NSMenuItemCell 的标题中找到任何警告或禁止此样式的内容。并且大小由约束设置,没有记录自动布局问题。
到控制台的 spew 不包含任何指示此消息来自何处的指示符。我只能通过观察到的行为来判断。
未知的边框样式 15 和/或控件尺寸 1
有没有办法让这个静音?