On 22 Aug 2008, at 5:22 pm, Andrew Merenbach wrote:

Hi! It appears that you're removing an object from a mutable array while enumerating, so that will unfortunately not work. To modify your concept:

NSMutableArray *myMutableArray = [myOriginalArray copy];


Or just use reverseObjectEnumerator. Removing the current iteration item from the array while iterating backwards is OK.

Graham
_______________________________________________

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]

Reply via email to