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: Keary Suska <email@hidden>
- Date: Mon, 31 Dec 2007 10:45:27 -0700
- Thread-topic: Binding to one specific object of an NSArrayController
on 12/31/07 9:56 AM, email@hidden purportedly said:
> In my application I have a submenu which represents the content of
> an NSArrayController. When I add an object via the controllers add:
> method a new menu item is created. But when I change the value of a
> property from inside the table, this change is not reflected to the
> menu items. Therefore I bound the NSArrayController's selection.name
> keypath to the menu item's title when the menu item is added to the
> menu. Unfortunetly selection.name is the wrong keypath, because the
> title of all the menu items is the name of the selected item in the
> table. So my question is: Is there a way to bind each NSMenuItem's
> title to exactly one object managed by the NSArrayController?
No. Why can't you bind the menu title in the same way you have bound the
table column value?
Best,
Keary Suska
Esoteritech, Inc.
"Demystifying technology for your home or business"
_______________________________________________
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