• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: 'Static' items in an NSOutlineView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >'Static' items in an NSOutlineView (From: Koen van der Drift <email@hidden>)

  • Prev by Date: Re: Retain/Release and Properties clarification
  • Next by Date: Re: -viewDidUnload not always called?
  • Previous by thread: 'Static' items in an NSOutlineView
  • Next by thread: Re: 'Static' items in an NSOutlineView
  • Index(es):
    • Date
    • Thread