解决方法:
[(NSButtonCell *)button.cell setHighlightsBy:NSNoCellMask];//最好不好设置 setBezelStyle 及setButtonType
// [button setBezelStyle:NSBezelStyleTexturedSquare];
// [button setButtonType:NSButtonTypeMomentaryPushIn];
解决方法:
[(NSButtonCell *)button.cell setHighlightsBy:NSNoCellMask];//最好不好设置 setBezelStyle 及setButtonType
// [button setBezelStyle:NSBezelStyleTexturedSquare];
// [button setButtonType:NSButtonTypeMomentaryPushIn];
本文标题:Macos开发NSButton去掉点击时高亮
本文链接:https://www.haomeiwen.com/subject/fphfbctx.html
网友评论