Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: altering NSPopupButtons




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: http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden
References: 
 >altering NSPopupButtons (From: Mike Abdullah <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.