Am 22.08.2008 um 17:23 schrieb Michael Ash:

On Fri, Aug 22, 2008 at 6:23 AM, Graham Cox <[EMAIL PROTECTED]> wrote:
safe to delete items in the array at or higher than the current index. By the definition of an array, removing an item only affects the indexes of
objects with equal or greater indexes than the removed item.

You are making a big, unwarranted assumption about how
reverseObjectEnumerator works. Namely, you are assuming that it merely
tracks an index, and uses -objectAtIndex: (or equivalent) to retrieve
each object.

actually, there was an extensive thread last year. It seemed each enumerator created surprisingly a copy of the array, giving the OP some memory (or performance?) related trouble. IIRC it was the combination of a tight loop with tons of enumerators w/o local autorelease pools. Fast enumerators probably changed the rules since Tiger.

_______________________________________________

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