• 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: NSArray for (... in ...)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSArray for (... in ...)


  • Subject: Re: NSArray for (... in ...)
  • From: Quincey Morris <email@hidden>
  • Date: Fri, 23 May 2008 22:13:06 -0700


On May 23, 2008, at 21:17, Adam R. Maxwell wrote:

It is documented to return elements in index order.  From

http://developer.apple.com/documentation/Cocoa/Conceptual/ObjectiveC/Articles/chapter_7_section_1.html#/ /apple_ref/doc/uid/TP30001163-CH18

"For collections or enumerators that have a well-defined order—such as NSArray or NSEnumerator instance derived from an array—the enumeration proceeds in that order, so simply counting iterations will give you the proper index into the collection if you need it."

Beats me how I could read everything else on that page and not see what I was looking for.


Thx.

_______________________________________________

Cocoa-dev mailing list (email@hidden)

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:
This email sent to email@hidden


References: 
 >NSArray for (... in ...) (From: Quincey Morris <email@hidden>)
 >Re: NSArray for (... in ...) (From: "Adam R. Maxwell" <email@hidden>)

  • Prev by Date: Re: Cocoa et al as HCI usability problem
  • Next by Date: Re: Can't get file type code using [fileAttr valueForKey:NSFileHFSTypeCode]
  • Previous by thread: Re: NSArray for (... in ...)
  • Next by thread: Cleaning up a singleton
  • Index(es):
    • Date
    • Thread