Problem:
Take an instance of NSPopupButton
of type Pull down.
Add few menu items to the pop up.
Run the code.
Select any menu item in the popup
NSPopupButton
but with the type pull down.Can anybody help me to achieve this?
From the documentation,
Unlike popup lists, the title of a popup button displaying a pulldown list is not based on the currently selected item and thus remains fixed unless you change using the cell’s setTitle: method.
If you want the selected item to be shown as title, the easiest way is to use a popup instead of pulldown. Or call setTitle:
every time you change the selection.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With