• 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: accessing values along NSIndexPath
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: accessing values along NSIndexPath


  • Subject: Re: accessing values along NSIndexPath
  • From: Charles Srstka <email@hidden>
  • Date: Wed, 26 Mar 2014 20:04:38 -0500

On Mar 26, 2014, at 3:14 PM, Torsten Curdt <email@hidden> wrote:

> Going through a NSTreeController feels like cracking a nut with a sledge-hammer.
> Then I would rather roll my own.
>
> There is really no other way?

You could make your objects subclasses of NSTreeNode, and use its -mutableChildNodes property to store the children instead of naked arrays. Then, you could use -descendantNodeAtIndexPath: on the root node.

Charles


_______________________________________________

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: 
 >accessing values along NSIndexPath (From: Torsten Curdt <email@hidden>)
 >Re: accessing values along NSIndexPath (From: Lee Ann Rucker <email@hidden>)
 >Re: accessing values along NSIndexPath (From: Torsten Curdt <email@hidden>)

  • Prev by Date: Re: How to prevent a temp folder from being deleted
  • Next by Date: Re: How to tell if there's an active runloop?
  • Previous by thread: Re: accessing values along NSIndexPath
  • Next by thread: How to tell if there's an active runloop?
  • Index(es):
    • Date
    • Thread