• 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: Quickly remove contents from NSArrayController
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Quickly remove contents from NSArrayController


  • Subject: Re: Quickly remove contents from NSArrayController
  • From: "Kyle Sluder" <email@hidden>
  • Date: Mon, 24 Mar 2008 10:42:33 -0400

On Mon, Mar 24, 2008 at 10:35 AM, Jeff LaMarche <email@hidden> wrote:
> Doh! You're right if course. How about using removeSelectedIndexes:?
>  Should be faster than sorting the contents before removing them,

Hrm.  Why not try attacking this from the model end instead of the
controller end?  Since it only makes sense in this case for your
NSArrayController to be bound to an NSMutableArray (which I'm going to
assume is a property on an NSDocument subclass for this example), why
not use -[[myDocument mutableArrayValueForKey:@"theKey"]
setArray:[NSArray array]]?

--Kyle Sluder
_______________________________________________

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

References: 
 >Quickly remove contents from NSArrayController (From: Martin Linklater <email@hidden>)
 >Re: Quickly remove contents from NSArrayController (From: Jeff LaMarche <email@hidden>)
 >Re: Quickly remove contents from NSArrayController (From: Martin Linklater <email@hidden>)
 >Re: Quickly remove contents from NSArrayController (From: Jeff LaMarche <email@hidden>)

  • Prev by Date: Re: Quickly remove contents from NSArrayController
  • Next by Date: Re: Perform selector on thread
  • Previous by thread: Re: Quickly remove contents from NSArrayController
  • Next by thread: Re: Quickly remove contents from NSArrayController
  • Index(es):
    • Date
    • Thread