2
如何设置选择颜色?在这种情况下,这是一个选择的一个NSTableView颜色可可:设置选定颜色
编辑:
这里是我的子类:
- (void)highlightSelectionInClipRect:(NSRect)clipRect
{
NSBezierPath *windowPath;
windowPath = [NSBezierPath bezierPathWithRect:clipRect];
[[NSColor greenColor] set];
[windowPath fill];
}
唯一的问题是,它使得色彩的背景下,不作为当我突出显示一行时使用的颜色。