Re: Should I be trying to use bindings for this?
Re: Should I be trying to use bindings for this?
- Subject: Re: Should I be trying to use bindings for this?
- From: Paul Bruneau <email@hidden>
- Date: Wed, 3 Oct 2007 16:04:32 -0400
On Oct 3, 2007, at 4:01 PM, Scott Andrew wrote:
You could create a 2nd array controller and have its arranged
objects attached to your 1st array controller's selected item at a
key path of "weapons". This allows you too dynamically associate a
2nd controller for a another list box based on the selection of
another. This should work well really well. Then its all dynamic
and you have very little code except for basic accessors. Doing an
addObject on the 2nd controller will add your new weapons to the
backing NSMutableArray.
Yes in fact that is what mmalc taught me to do earlier and it does
work well. I think my problem was that I was trying to do it with an
NSPopupButton imbedded into my table's column. So I think my
interface idea was my main fault.
Thank you!
_______________________________________________
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