Re: copy versus arrayWithArray:
Re: copy versus arrayWithArray:
- Subject: Re: copy versus arrayWithArray:
- From: Eric Scharff <email@hidden>
- Date: Fri, 18 Aug 2006 05:35:21 -0700 (PDT)
--- Chris Suter <email@hidden> wrote:
> Why not iterate through the items using an index? Then you
> don't need
> to make a copy.
That's probably the best solution, but my actual code is more
complicated than my simple example. I have one object that
iterates over the collection, calling methods on the contents.
Many subsequent method calls deep, something might call the
original (iterating) object to add or remove things. I should
be able to do this by making i and count member variables of the
iterating object, but then I think I may have to worry about
other synchronization concerns.
Thanks,
-Eric
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden