Binding NSMenuItem 'value' or 'title': Accessors not invoked
Binding NSMenuItem 'value' or 'title': Accessors not invoked
- Subject: Binding NSMenuItem 'value' or 'title': Accessors not invoked
- From: Jerry Krinock <email@hidden>
- Date: Tue, 9 Oct 2007 06:40:49 -0700
After binding the 'value' (which should show/hide the checkmark) or
the 'title' of NSMenuItems in my main menu, I find that the bound-to
accessors only get invoked once, when the app launches. Therefore,
subsequent changes are never propagated to the menu.
My expectation is that the accessors should be invoked whenever the
menu containing the menu item is clicked, the same as -
validateMenuItem works.
I know that I've not misspelled the key names, because if I do
misspell a key name or if my accessor does not exist, I get a
complaint in Console and the app crashes on launch.
Is there some other action I need to do?
Jerry Krinock
_______________________________________________
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