• 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 enumerator orders- interface or implementation detail? also: removing conditional statements
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSArray enumerator orders- interface or implementation detail? also: removing conditional statements


  • Subject: Re: NSArray enumerator orders- interface or implementation detail? also: removing conditional statements
  • From: Chris Hanson <email@hidden>
  • Date: Mon, 7 Oct 2002 17:40:04 -0500

At 2:21 PM -0500 10/7/02, Joe Osborn wrote:
In short-- can I rely upon -[NSArray objectEnumerator] to return an enumerator which will enumerate through the array's elements in the order of their indices in the array?

Yes.

According to the documentation for -[NSArray objectEnumerator]:

Returns an enumerator object that lets you access each object
in the receiver, in order, starting with the element at index
0 [...]

Hope this helps.

-- Chris

PS - When you have multiple unrelated questions, you might want to post each question in a separate message. In my mail client, I couldn't even tell you had a second question until I read your message because its subject was truncated in my message list window.

--
Chris Hanson | Email: email@hidden
bDistributed.com, Inc. | Phone: +1-847-372-3955
Making Business Distributed | Fax: +1-847-589-3738
http://bdistributed.com/ | Personal Email: email@hidden
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >NSArray enumerator orders- interface or implementation detail? also: removing conditional statements (From: Joe Osborn <email@hidden>)

  • Prev by Date: Document-style drawing code
  • Next by Date: Re: NSDisclosureButtonCell
  • Previous by thread: Re: NSArray enumerator orders- interface or implementation detail? also: removing conditional statements
  • Next by thread: drag and drop
  • Index(es):
    • Date
    • Thread