NSPopUpButton类型为Pull Down,当我单击某些菜单项时,弹出窗口的标题未更改 [英] NSPopUpButton of type pull Down , when i click on some menu item ,title of popup is not getting changed
本文介绍了NSPopUpButton类型为Pull Down,当我单击某些菜单项时,弹出窗口的标题未更改的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
问题:
-
采用类型为Pull down的
NSPopupButton
的实例.
在弹出菜单中添加一些菜单项.
Add few menu items to the pop up.
运行代码.
在弹出窗口中选择任何菜单项
Select any menu item in the popup
- 弹出按钮的标题未更改.
- 我需要将所选项目显示为Popup的标题,与
NSPopupButton
的正常行为相同,但类型为下拉. - 还需要添加与标题相同的名称.
- 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?
推荐答案
查看全文