Re: 'Static' items in an NSOutlineView
Re: 'Static' items in an NSOutlineView
- Subject: Re: 'Static' items in an NSOutlineView
- From: Jens Alfke <email@hidden>
- Date: Fri, 14 Oct 2011 11:40:31 -0700
On Oct 14, 2011, at 9:24 AM, Koen van der Drift wrote:
> I’m trying to find out how to create the grayish, static items in an
> NSOutlineView, eg “Library” in iTunes or “Mailboxes” in Mail.
> Sometimes they have a disclosure triangle, eg "Devices" in the Finder.
> I think I need to subclass NSCell to change the font, etc.
No need; you just implement the outline view delegate method that gets called before the cell is about to be drawn, and set the cell’s text color, font, etc.
—Jens_______________________________________________
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