Re: NSArray for (... in ...)
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