Re: Sourcelist background colors
Re: Sourcelist background colors
- Subject: Re: Sourcelist background colors
- From: Corbin Dunn <email@hidden>
- Date: Wed, 25 Jun 2008 10:28:42 -0700
On Jun 24, 2008, at 12:57 PM, Markus Spoettl wrote:
Hello List,
is there a way to get the background color of an NSOutlineView when
in sourcelist mode (for both key and non-ket state)?
Yes. It is a magical NSColor that draws correctly depending on the
window key-state. Create an NSOutlineView, set it to be a source list,
and get the -backgroundColor. Keep it around and use it as you wish.
Be sure to redisplay your view when the window looses key-ness.
corbin
NSColor doesn't seem to define the color. If not, is there a way to
derive the color somehow, by blending or highlighting with another
system defined color?
Thanks for any pointers!
_______________________________________________
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