Re: NSTreeController -removeObjectsAtArrangedObjectIndexPath:
Re: NSTreeController -removeObjectsAtArrangedObjectIndexPath:
- Subject: Re: NSTreeController -removeObjectsAtArrangedObjectIndexPath:
- From: Chris Williams <email@hidden>
- Date: Mon, 08 Oct 2007 11:48:36 -0700
- Thread-topic: NSTreeController -removeObjectsAtArrangedObjectIndexPath:
I don't know this method. I'm not sure what the docs mean by "indexPaths".
I'm doing much the same thing (removing a tree of items from a OutlineView)
with a small recursive function. To wit:
- (void)clearTree {
int i;
int kids = [self numberOfChildren];
for (i=kids-1; i>=0; i--)
[[self childAtIndex:i] clearTree];
id tmp = [self children];
if (tmp != IsALeafNode) [children release];
children == NULL;
}
The asking the parent item to reload...
On 10/7/07 9:46 PM, "Ben Lachman" <email@hidden> wrote:
> Is there a less complex work
> around than going through the paths, and sorting them by length
> (depth) and processing them in batches?
_______________________________________________
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