Re: access multiple NSTextFields as an array?
Re: access multiple NSTextFields as an array?
- Subject: Re: access multiple NSTextFields as an array?
- From: Scott Ribe <email@hidden>
- Date: Mon, 20 Dec 2010 09:30:49 -0700
On Dec 20, 2010, at 9:16 AM, Artemiy Pavlov wrote:
> Yes, I did this after sending this e-mail :-) Weird though, that it doesn't work straight away... Here is my code:
You're not creating the array.
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;
...
Or if it works for your spacing and so on, you could use an NSMatrix to set up the text labels...
--
Scott Ribe
email@hidden
http://www.elevated-dev.com/
(303) 722-0567 voice
_______________________________________________
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