Re: Text color in NSOutlineView's selected row
Re: Text color in NSOutlineView's selected row
- Subject: Re: Text color in NSOutlineView's selected row
- From: Corbin Dunn <email@hidden>
- Date: Thu, 07 May 2009 16:35:15 -0700
On May 7, 2009, at 2:28 PM, Kevin Gessner wrote:
On May 7, 2009, at 6:11 PM, Corbin Dunn wrote:
On May 7, 2009, at 6:52 AM, Kevin Gessner wrote:
On May 7, 2009, at 3:39 PM, email@hidden wrote:
Try reviewing this thread - it might help
http://www.cocoabuilder.com/archive/message/cocoa/2009/3/12/232149
Thanks for the pointer - that's what I get for not Googling for
the outline view's super class, too.
Are you using the "Source list" highlighting style, but hiding the
highlighting? Is there a reason you want to do this (since the main
purpose of the highlighting style is for the highlighting :)
corbin
I'm using the Regular highlighting style. My overall goal is to make
the NSOutlineView look more like a text view, with the selection
denoted by caret position. I've found a suitable workaround for the
text color issue: always having the field editor on some row
whenever the outline view has focus.
Okay -- the thread that people pointed to you is only applicable for
the source list style; it accidentally has an order dependency if
people change the textColor. Long story short, it is because
NSTAbleView changes the attributed string before willDisplayValue is
called in order to give the correct source list highlighting attributes.
It sounds like you are having a different problem. More than likely,
it is due to the -backgroundStyle. Call -
setBackgroundStyle:NSBackgroundStyleLight on the cell in -
willDisplayCell: -- that should fix the original issue you mentioned.
However, the point may be moot if you want a field editor over the
cell. It's more for reference, and understanding. The background style
needs to be updated correctly.
corbin
_______________________________________________
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