• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: NSTableView highlited text color
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >NSTableView highlited text color (From: Andre Masse <email@hidden>)
 >Re: NSTableView highlited text color (From: Corbin Dunn <email@hidden>)

  • Prev by Date: Re: NSTableView highlited text color
  • Next by Date: Re: NSTableView highlited text color
  • Previous by thread: Re: NSTableView highlited text color
  • Next by thread: Re: NSTableView highlited text color
  • Index(es):
    • Date
    • Thread