On 2 Mar '08, at 1:44 PM, Andrew Merenbach wrote:
You probably want to use enumerators and something like the following code:
That's debatable. Personally, I hate using NSEnumerator because it's slow. (Not only does it create an autoreleased enumerator object, but most of the standard collection enumerators copy the collections they enumerate over.)
On the other hand, using fast enumeration via the "for...in..." syntax in ObjC-2 is a total win. Not only is the syntax clear, but the implementation is very efficient (faster than -objectAtIndex, much faster than NSEnumerator.)
—Jens
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________ 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]