On Fri, Aug 22, 2008 at 7:28 PM, Graham Cox <[EMAIL PROTECTED]> wrote: > Or just use reverseObjectEnumerator. Removing the current iteration item > from the array while iterating backwards is OK. >
Even going backwards, it's still not ok... >From the -reverseObjectEnumerator 'special considerations' section of the documentation: "When you use this method with mutable subclasses of NSArray, you must not modify the array during enumeration." And from NSEnumerator: "Some enumerators may currently allow enumeration of a collection that is modified, but this behavior is not guaranteed to be supported in the future." Phil _______________________________________________ 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]