• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: access multiple NSTextFields as an array?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Re: access multiple NSTextFields as an array? (From: Scott Ribe <email@hidden>)

  • Prev by Date: Re: access multiple NSTextFields as an array?
  • Next by Date: Re: Cocoa view gets sluggish over time
  • Previous by thread: Re: access multiple NSTextFields as an array?
  • Next by thread: Re: access multiple NSTextFields as an array?
  • Index(es):
    • Date
    • Thread