Re: Gradient NSOutlineView row - Text color of it's NSTextFieldCell
Re: Gradient NSOutlineView row - Text color of it's NSTextFieldCell
- Subject: Re: Gradient NSOutlineView row - Text color of it's NSTextFieldCell
- From: "Alan Smith" <email@hidden>
- Date: Sun, 29 Jul 2007 10:34:54 -0400
Florian,
I'm afraid I may have led you off track with that last email. I was
completely wrong, all of it. NSTableView does tell the selected cells
they are highlighted. And isHighlighted is the method you want.
You said the text cells are always one color. I was able to achieve
this by making _highlightColorForCell: not do anything, literally.
- (NSColor*)_highlightColorForCell:(NSCell*)cell
{
}
But, if you change it to return nil,
- (NSColor*)_highlightColorForCell:(NSCell*)cell
{
return nil;
}
the cells change their text color when selected and back again when unselected.
If this doesn't fix your problem post the code and we will see what we can do.
Cheers, Alan
--
My blog: cocoalate.info
// Things I've said -------------------------
"Maturity resides in the mind."
"Silence is the Universe's greatest gift."
"When the World realizes that personal beliefs are not something to
argue or fight over, it shall evolve."
_______________________________________________
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