Selected text color in an outline view
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.