Mac osx 开发-NSButton去掉点击时的背景颜色 -
2017-04-21 本文已影响157人
Funcy1Day
自定义的NSButton初始化函数中:(self.cell as! NSButtonCell).highlightsBy = NSCellStyleMask.contentsCellMask
或外部调用(button.cell as! NSButtonCell).highlightsBy = NSCellStyleMask.contentsCellMask