NSPopUpButton of type Pull Down, when I click on any menu item, the title of the popup does not change

Problem:

  • Take an instance NSPopupButtonof pull down.

  • Add some menu items to the popup window.

  • Run the code.

  • Select any menu item in the popup menu

    • The name of the popup button does not change.
    • I need to show the selected item as the title of a popup, like normal behavior NSPopupButton, but with a pull down type.
    • You must also add an item under the same name as the name.

Can someone help me achieve this?

+4
source share
1 answer

documentation,

, , , setTitle: cell.

, , . setTitle: , .

+6

Source: https://habr.com/ru/post/1536722/


All Articles