Getting children of all subnodes of a selected node in NSTreeController?
Getting children of all subnodes of a selected node in NSTreeController?
- Subject: Getting children of all subnodes of a selected node in NSTreeController?
- From: Rick Mann <email@hidden>
- Date: Mon, 4 Jan 2010 11:27:48 -0800
I now have a working Group selection UI, where you can choose one or more groups and see the list of items belonging to those groups in another pane.
Now, I'd like to extend things a bit so that if a group with subgroups is selected, all of the items belonging to that group, and to all of its subgroups, is shown in the list.
I didn't see any KVO operator that would do that, so I think what I need to do is subclass NSTreeController and add a property which is either all of the selected groups and their subgroups, or nodes.
OTOH, I think that would be hard to do correctly, because of the way the controllers return proxies. Maybe a better thing to do would be to add a property to my Group entity which is all of the it child items (which I have now), plus all of the subgroups' child items.
Any advice would be much appreciated. Thanks!
--
Rick
_______________________________________________
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