• 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: NSTreeController -removeObjectsAtArrangedObjectIndexPath:
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: NSTreeController -removeObjectsAtArrangedObjectIndexPath: [solved]
      • From: Ben Lachman <email@hidden>
References: 
 >NSTreeController -removeObjectsAtArrangedObjectIndexPath: (From: Ben Lachman <email@hidden>)

  • Prev by Date: Re: Saving to application support folder.
  • Next by Date: Re: Saving to application support folder.
  • Previous by thread: NSTreeController -removeObjectsAtArrangedObjectIndexPath:
  • Next by thread: Re: NSTreeController -removeObjectsAtArrangedObjectIndexPath: [solved]
  • Index(es):
    • Date
    • Thread