I have a NSTreeController with: Node1 --- value1 --- value2 Node2 --- value1 --- value2 --- value3
With the following, I am able to remove a user selection: [treeController removeObjectsAtArrangedObjectIndexPaths:[treeController selectionIndexPaths]]; I cannot seem to find how to do this by code, that is, for example, remove from the tree all of Node2 children... I tried with something like the following, but it only removes the node itself... [treeController setSelectionIndexPath:[NSIndexPath indexPathWithIndex:1]]; How can I remove a node's children, while retaining the node itself? Tia, S. _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com