• 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: Fast enumeration
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Fast enumeration


  • Subject: Re: Fast enumeration
  • From: Jonathon Kuo <email@hidden>
  • Date: Thu, 22 Jul 2010 16:28:37 -0700

On Jul 22, 2010, at 1:10 PM, Quincey Morris wrote:

> id _id;
>
> for (_id in array) {
> }
>
> if (_id)
> {
> }

If I use this to go backward through the array:

for (_id in [array reverseObjectEnumerator]) {
}

...is it still considered 'fast' enumeration?

-Jon

_______________________________________________

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

  • Follow-Ups:
    • Re: Fast enumeration
      • From: Graham Cox <email@hidden>
References: 
 >Fast enumeration (From: Charlie Dickman <email@hidden>)
 >Re: Fast enumeration (From: Quincey Morris <email@hidden>)

  • Prev by Date: Re: print object by %@
  • Next by Date: Re: Fast enumeration
  • Previous by thread: Re: Fast enumeration
  • Next by thread: Re: Fast enumeration
  • Index(es):
    • Date
    • Thread