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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to