Re: Finder's sidebar background color
Re: Finder's sidebar background color
- Subject: Re: Finder's sidebar background color
- From: Andrew Merenbach <email@hidden>
- Date: Sat, 15 Nov 2008 13:45:59 -0800
On Nov 15, 2008, at 1:41 PM, Knut Lorenzen wrote:
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
Hi, Knut,
Just out of curiosity: if you're trying to mimic the Finder, iTunes,
etc., what would you be using besides an outline view? A normal table
view wouldn't allow you to have groupings of subitems that are
viewable with disclosure triangles.
Best,
Andrew
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
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