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
- Title of popup button is not getting changed.
- I need to show the selected item as title of Popup same as Normal behaviour of
NSPopupButton
but with the type pull down. - Also Need to add an item as same name as title.
Can anybody help me to achieve this?
From the documentation,
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.