Re: NSTableView highlited text color
Re: NSTableView highlited text color
- Subject: Re: NSTableView highlited text color
- From: Andre Masse <email@hidden>
- Date: Wed, 05 Nov 2008 18:14:00 -0500
Thanks Corbin. Quick and easy, I like that :-)
Andre Masse
On Nov 5, 2008, at 17:48, Corbin Dunn wrote:
If you set an explicit color on the cell, then it doesn't know it
should flip the black text to white text when it is selected (in
other words, it has no way of knowing that what you set it to isn't
what you really wanted). So, in -willDisplayCell, you will have to
set the text color to white yourself.
You can set the text color to gray if the [cell backgroundStyle] ==
NSBackgroundStyleLight and the text to white otherwise. It should
be easy to do, and not require subclassing. Also, subclassing and
overriding -isHighlighted wouldn't have given you the effect you
wanted.
corbin
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden