On 20/12/2010, at 13:38, Artemiy Pavlov wrote:

> Now, I'd like to be able to access each one of these NSTextField objects to 
> change their color. My question is, right in this loop, can I create some 
> sort of an array of pointers to these objects?

Just create a NSMutableArray before the loop:

NSMutableArray *array = [NSMutableArray arrayWithCapacity:16];

And then add each field to the array right in the loop

for (…) {
    …
   [array addObject:textField];
}



_______________________________________________

Cocoa-dev mailing list ([email protected])

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