Re: Binding to one specific object of an NSArrayController
Re: Binding to one specific object of an NSArrayController
- Subject: Re: Binding to one specific object of an NSArrayController
- From: Jerry Krinock <email@hidden>
- Date: Tue, 1 Jan 2008 05:24:02 -0800
On 2007 Dec, 31, at 20:39, Shripada Hebbar wrote:
This will return you the NSArray of objects maintained by the array
controller.
You can iterate through this array and bind to each of the menu items.
I am not sure if this is an elegant method, but it works.
I would say that it is not elegant, and also more work and more
confusing than doing it without bindings. Your data is only flowing
in one of the two directions; i.e. the user cannot add or delete items
using menu, so you're missing that "advantage" of bindings too.
I would definitely ^not^ use bindings in this case.
_______________________________________________
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