Re: What is the best way to store some kind of identifying string in an interface builder object?
Re: What is the best way to store some kind of identifying string in an interface builder object?
- Subject: Re: What is the best way to store some kind of identifying string in an interface builder object?
- From: Andy Lee <email@hidden>
- Date: Thu, 18 Jun 2009 23:07:10 -0400
On Jun 18, 2009, at 4:45 PM, Michael Ash wrote:
On Thu, Jun 18, 2009 at 1:59 PM, Erik Buck<email@hidden>
wrote:
[...]
You can populate the array entirely within IB. Make any target/
action connections in IB.
http://www.geocities.com/kritter_cocoadev/
Since the last update on that page is from the Panther era, and since
Leopard's IB3 completely broke backwards compatibility with IB2
plugins, I'd say the chances of the Foundation Collections Palette
still working are approximately zero.
Way back in the NextStep days, I used an NSMatrix as a sort of poor
man's array. I'd drag a text field or a form into the nib, stretch it
out to as many elements as I wanted, and make outlet connections from
the cells to the elements of my array. I'd type descriptions of the
array elements into the text fields, kind of like comments. Once the
nib was loaded, it only took a few lines of code to construct a real
array and discard the NSMatrix. The same approach could be used to
construct a dictionary.
--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