Re: access multiple NSTextFields as an array?
Re: access multiple NSTextFields as an array?
- Subject: Re: access multiple NSTextFields as an array?
- From: aglee <email@hidden>
- Date: Mon, 20 Dec 2010 16:55:11 +0000 (GMT)
On Dec 20, 2010, at 11:30 AM, Scott Ribe <email@hidden> wrote:
Anyway, there's no need for an NSMutableArray. You can just have a plain C array as an attribute of your class, and set up its entries in awakeFromNib:
patterRateLabels[0] = numberLabel1;
patterRateLabels[1] = numberLabel2;
I don't recommend this approach. It's safer to get the memory management benefits of NSMutableArray, and not worry about off-by-one or array overflow errors.
--Andy
_______________________________________________
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