Re: accessing values along NSIndexPath
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