Re: Quickly remove contents from NSArrayController
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