• 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: NSOutlineView Items Like iTunes 7.4
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSOutlineView Items Like iTunes 7.4


  • Subject: Re: NSOutlineView Items Like iTunes 7.4
  • From: Michael Larbi <email@hidden>
  • Date: Wed, 19 Sep 2007 15:08:21 +0100

Hi Clint,

Thanks for the response. I found a rather elegant solution with Leopard version of NSOutlineView. The following has been added in NSOutlineView.h

#if MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_5

/* Returns the frame of the outline cell for a particular row, considering the current indentation and indentationMarkerFollowsCell value. If 'row' is not an expandable row, it will return NSZeroRect. This method can be overridden by subclassers to return a custom frame for the outline button cell. If an empty rect is returned, no outline cell will be drawn for that row.
*/
- (NSRect)frameOfOutlineCellAtRow:(NSInteger)row;


#endif

So by overriding this method in my subclass of NSOutlineView I was able to return NSZeroRect for rows where I don't want the disclosure triangle. That worked fine.

Thanks again

Michael


On 19 Sep 2007, at 12:55, Clint Shryock wrote:

you wont get that by default but you could start with this
http://elfurl.com/chnn6

+Clint

On 9/18/07, Michael Larbi <email@hidden> wrote:
I  am using NSOutlineView in an application and will like to have some
of the items behave like they do iTunes:

LIBRARY and STORE have the these desirable attributes:

a.  they do not have the disclosure button
b.  their children are already expanded when iTunes is started.

I've searched past postings on the cocoa-dev list but cannot find any
help in this regard.  Can anyone help please?

Thanks in advance

_______________________________________________

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


_______________________________________________

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


  • Follow-Ups:
    • Re: NSOutlineView Items Like iTunes 7.4
      • From: "I. Savant" <email@hidden>
    • Re: NSOutlineView Items Like iTunes 7.4
      • From: "Igor Mozolevsky" <email@hidden>
References: 
 >NSOutlineView Items Like iTunes 7.4 (From: Michael Larbi <email@hidden>)
 >Re: NSOutlineView Items Like iTunes 7.4 (From: "Clint Shryock" <email@hidden>)

  • Prev by Date: Re: NSOutlineView Items Like iTunes 7.4
  • Next by Date: Re: NSOutlineView Items Like iTunes 7.4
  • Previous by thread: Re: NSOutlineView Items Like iTunes 7.4
  • Next by thread: Re: NSOutlineView Items Like iTunes 7.4
  • Index(es):
    • Date
    • Thread