• 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: Corbin Dunn <email@hidden>
  • Date: Wed, 05 Nov 2008 14:43:27 -0800


On Nov 5, 2008, at 5:30 PM, Andre Masse wrote:

Hi,

When selecting a row in a NSTableView, the default highliting (white text on blue background) doesn't work if the text is not black. Is there a setting somewhere (in IB) or a method to implement/override to fix that? I have a column's cell with its foreground color set to gray and it's almost unreadable when the row is selected. I could make my own NSTextFieldCell subclass and override - isHighlited but would prefer not to.

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] == _______________________________________________

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>)

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