jjzjj

NSArrayContoller

全部标签

swift - 如何更改使用 NSArrayContoller 作为内容源的 NSTableView 的选择颜色?

我有一个NSTableView(基于View),它显示来自NSarrayController的信息。所有连接均来自IB。一切正常,但是蓝色选择颜色看起来不符合我的设计理念,所以我想用我自己的颜色改变这种颜色,但直到现在我都失败了。classMyTable:NSTableView,NSTableViewDelegate{overridefuncdrawBackgroundInClipRect(clipRect:NSRect){ifself.isRowSelected(self.selectedRow){//NSColor.brownColor().colorWithAlphaCompon