On Sat, Jun 28, 2008 at 3:56 PM, Markus Spoettl <[EMAIL PROTECTED]> wrote: > I had this in my code > > - (void)remove<key>AtIndexes:(NSIndexSet *)indexes > { > NSMutableArray *kva = [self mutableArrayValueForKey:@"<key>"]; > [kva removeObjectsAtIndexes:indexes]; > }
And you're surprised that this caused an infinite loop? The point of the indexed accessors is to implement the actual data manipulation for the proxy returned by -mutableArrayValueForKey. So all -removeKeyAtIndexes: should do is remove the requested object from whatever storage mechanism is being used to back that property. --Kyle Sluder _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]