• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Subclass of NSPopUpButton and Bindings
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


References: 
 >Subclass of NSPopUpButton and Bindings (From: Ali Lalani <email@hidden>)

  • Prev by Date: Re: returning nil on initialization
  • Next by Date: Re: Is the internet avaliable question
  • Previous by thread: Subclass of NSPopUpButton and Bindings
  • Next by thread: An NSShadow question
  • Index(es):
    • Date
    • Thread