On Apr 27, 2013, at 11:11 AM, Boyd Collier <bcolli...@cox.net> wrote:
> NSEnumerator *myEnumerator = [arrayOfLabels objectEnumerator]; > NSString *aString = [myEnumerator nextObject]; // gets us past the > first element > NSLog(@"the label is %@", aString); // just to check; > doesn't get used > > NSArray *arrayOfLabels = [myEnumerator allObjects]; > > for (aString in arrayOfLabels) { > // these are the strings that I'm interested in and will use > NSLog(@"the label from enumeration is %@", aString); > } You don't need to create a separate array, since NSEnumerator already supports fast-enumeration. NSEnumerator *myEnumerator = [arrayOfLabels objectEnumerator]; (void)[myEnumerator nextObject]; // gets us past the first element for (aString in myEnumerator) { ... } —Jens _______________________________________________ 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: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com