Re: Fast enumeration
Re: Fast enumeration
- Subject: Re: Fast enumeration
- From: Graham Cox <email@hidden>
- Date: Fri, 23 Jul 2010 09:37:16 +1000
On 23/07/2010, at 9:28 AM, Jonathon Kuo wrote:
> If I use this to go backward through the array:
>
> for (_id in [array reverseObjectEnumerator]) {
> }
>
> ...is it still considered 'fast' enumeration?
Yes, NSEnumerator conforms to the fast enumeration protocol.
--Graham
_______________________________________________
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