• 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: altering NSPopupButtons
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: altering NSPopupButtons


  • Subject: Re: altering NSPopupButtons
  • From: Shawn Erickson <email@hidden>
  • Date: Sat, 18 Feb 2006 13:23:08 -0800


On Feb 18, 2006, at 1:03 PM, Mike Abdullah wrote:

I have a Popup button in my interface, which contains a number of options the user can pick from. At some stage during the running of the program, the contents of that popup button may need to change.

So, what is the best way of altering the contents of a popup button without losing the user's suggestion or affecting the interface too much?

The docs for NSPopUpButton and NSMenu outline the API for all of that. Note synchronizeTitleAndSelectedItem provided by NSPopUpButton.



Also review...

<http://developer.apple.com/documentation/Cocoa/Conceptual/MenuList/ index.html#//apple_ref/doc/uid/10000032i>


-Shawn _______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >altering NSPopupButtons (From: Mike Abdullah <email@hidden>)

  • Prev by Date: altering NSPopupButtons
  • Next by Date: Cyclic import dependency causes compilation errors
  • Previous by thread: altering NSPopupButtons
  • Next by thread: Cyclic import dependency causes compilation errors
  • Index(es):
    • Date
    • Thread