Re: NSArray - move Items at indexes
Re: NSArray - move Items at indexes
- Subject: Re: NSArray - move Items at indexes
- From: Andreas Mayer <email@hidden>
- Date: Thu, 20 Sep 2007 18:04:06 +0200
Am 20.09.2007 um 17:27 Uhr schrieb Clark Cox:
NSEnumerator *enumerator = [objectsToMove objectEnumerator];
id object = nil;
while(object = [enumerator nextObject]) {
[self insertObject: object atIndex: index++];
}
Instead of this loop you could use -
replaceObjectsInRange:withObjectsFromArray:.
Andreas
_______________________________________________
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