I'm overriding -[NSTableView highlightSelectionInClipRect:] because I don't want all the columns of the selected row to be highlighted. Works fine except +[NSColor highlightColor] returns white instead of actual highlight color I have set in System Preferences > Appearance, which is green.

Here's the code:

color = [NSColor highlightColor] ;
color = [color colorUsingColorSpaceName:@"NSDeviceRGBColorSpace"] ;
NSLog(@"highlight color = %0.2f %0.2f %0.2f %0.2f",
         [color redComponent],
         [color greenComponent],
         [color blueComponent],
         [color alphaComponent]) ;

Here's the console output:

highlight color = 1.00 1.00 1.00 1.00

{1,1,1,1} is solid white, not green.  What am I doing wrong?

Thank you,

Jerry Krinock

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to