Re: NSString and string contains
Re: NSString and string contains
- Subject: Re: NSString and string contains
- From: Andrew Merenbach <email@hidden>
- Date: Sun, 2 Mar 2008 14:16:39 -0800
Yep, I would've suggested fast enumeration, as I use them myself
regularly, except that a beginner might (or might not) find the
traditional paradigm easier.
Cheers,
Andrew
On Mar 2, 2008, at 2:01 PM, j o a r wrote:
On Mar 2, 2008, at 10:44 PM, Andrew Merenbach wrote:
You probably want to use enumerators and something like the
following code:
...and if you're on 10.5 (or later - even if that's kind of unlikely
at this point) you'd use the new FAST enumerator:
for (NSString *string in array)
{
// Do stuff with the string
}
j o a r
_______________________________________________
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