• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: copy versus arrayWithArray:
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: copy versus arrayWithArray:
      • From: Chris Suter <email@hidden>
References: 
 >Re: copy versus arrayWithArray: (From: Chris Suter <email@hidden>)

  • Prev by Date: What's the fastest way to get icons for file/folders?
  • Next by Date: Re: NSPopupButtonCell bindings issues
  • Previous by thread: Re: copy versus arrayWithArray:
  • Next by thread: Re: copy versus arrayWithArray:
  • Index(es):
    • Date
    • Thread