Re: Finder's sidebar background color
Re: Finder's sidebar background color
- Subject: Re: Finder's sidebar background color
- From: Knut Lorenzen <email@hidden>
- Date: Sat, 15 Nov 2008 22:41:56 +0100
Am 15.11.2008 um 22:10 schrieb Markus Spoettl:
On Nov 15, 2008, at 12:58 PM, Knut Lorenzen wrote:
is there a way to obtain the background color of Finder's sidebar
programmatically?
Yes, if you have an NSOutlineView instance in SourceList display mode
you can just use its -backgroundColor is to get the correct color.
Refreshing whatever you draw whenever your window receives a
NSWindowDidBecomeMainNotification or NSWindowDidResignMainNotification
notification will keep it in sync with the outline view background
when the window becomes active and inactive.
Markus,
thanks, that looks promising.
There is no NSOutlineView in my App right now, but it sounds as it
might be possible to use an invisible NSOutlineView-dummy just in
order to get the colors from it.
Cheers,
Knut
_______________________________________________
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