Re: NSArrayController content array vs arrangedObject
Re: NSArrayController content array vs arrangedObject
- Subject: Re: NSArrayController content array vs arrangedObject
- From: email@hidden
- Date: Fri, 20 Jul 2007 11:59:05 -0700
Yes, thanks. I did try using -removeObjectInArray.
[self willChangeValueForKey:@"theFoo"];
[[self theFoo] removeObjectsInArray:theObjects];
[self didChangeValueForKey:@"theFoo"];
And it works fine. My only concern with this approach is that I
imagine that the time it takes to remove n amount of items increases
with the number of the objects you want to delete. The documentation
says that removeObjectsInArray looks for each item in the array and
removes it, so I imagine that it could get slow.
This is approach I will use right now, but I am bothered somewhat
that I can't understand how to retrieve an underlying IndexSet for
the contenArray.
p in la
_______________________________________________
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