On Mon, Nov 30, 2009 at 4:21 PM, Ken Thomases <k...@codeweavers.com> wrote:
> On Nov 30, 2009, at 2:45 PM, Dennis Munsie wrote:
>
> Some alternatives:
>
> * Iterate over the array just using an index, rather than fast enumeration 
> (or NSEnumerator).

A safe way to do that is to iterate backwards, starting at the max
index and counting down to 0. That way, removing the item at the
current index will only change the indexes of the items you've already
seen.

sherm--

-- 
Cocoa programming in Perl:
http://www.camelbones.org
_______________________________________________

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 arch...@mail-archive.com

Reply via email to