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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to