• 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
Selected text color in an outline view
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Selected text color in an outline view


  • Subject: Selected text color in an outline view
  • From: Jan Van Boghout <email@hidden>
  • Date: Sun, 6 Apr 2003 16:15:16 +0200

Hi everyone,

Here is my situation. I have an outline view with different items (duh). There are two types of items and I want them to have a different text color. One type has black text, the other has a grey color. Now this is easy to set in the delegate method willDisplayCell, but there is a problem with the highlighting. When I do a [cell setTextColor:whateverColor]; it works fine for non-highlighted cells.
The problem is that when a cell is selected and the outline is first responder (so the highlight is of the dark variant and not the light one), the grey cells' text stays grey instead of changing to white like the black cells do.

How can I make the highlight text color white for all the cells but have different colors when not selected (or highlighted with the light color)?


Thanks,

Jan Van Boghout
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Prev by Date: Re: Getting the blue and white table views
  • Next by Date: Error from Debugger
  • Previous by thread: Re: Getting the blue and white table views
  • Next by thread: Error from Debugger
  • Index(es):
    • Date
    • Thread