Re: Subclass of NSPopUpButton and Bindings
Re: Subclass of NSPopUpButton and Bindings
- Subject: Re: Subclass of NSPopUpButton and Bindings
- From: Scott Anguish <email@hidden>
- Date: Fri, 2 Apr 2004 00:59:20 -0500
On Apr 2, 2004, at 12:44 AM, Ali Lalani wrote:
Hey all,
I've got a subclass of NSPopUpButton, in which in certain cases i
will programatically select a menu item(using the selectItem: call).
This unfortunately does not let the Controller know that the selection
has changed. My question is, is there any way, from within the context
of the popupbutton, to let the controller layer know that the
selection has changed, just as if a user had selected the item from
the menu manually? Thanks in advance,
No. You need to sock away the controller keypath in the subclass when
the binding is setup, and then set the value of the controller keypath.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.