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: John Stiles <email@hidden>
- Date: Sun, 29 Jul 2007 14:07:18 -0700
On Jul 29, 2007, at 7:34 AM, Alan Smith wrote:
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
{
}
FWIW, this code is simply erroneous. It is returning a random value.
This is likely to cause crashes on some configurations.
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:
40blizzard.com
This email sent to email@hidden
_______________________________________________
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