Display selected sub-menuItem in NSPopUpButton

Leonardo

I have filled my NSPopUpButton with menu and submenus.

When I select a menuItem on the root menu (so, not a sub-menuItem), it propery displays the menuItem selected. And when I re-click on the popUp button, I get the selected menuItem under the mouse.

But if I select a sub-menuItem, it doesn't display it. And if I re-click on the popUp button, I don't get it under the mouse. Any time I click on the button, I have to look for the selected item diving in the menu hierarchy.

Any solution?

harrisg

The Human Interface Guidelines state:

Avoid adding a submenu to an item in a pop-up menu. A submenu tends to hide choices too deeply and can be physically difficult for users to use.

I assume that since the practice is discouraged (albeit not that strongly) that it is not supported either. I can see how submenus would break some of NSPopUpButton's functionality, all of the item index related methods would not make sense. Those methods would have to use NSIndexPaths instead of simple indexes.

A potential substitute would be to use different indention levels in the menu to indicate hierarchy. I am about to try that myself.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Integer value of NSPopUpButton Selected Item

From Dev

Sub-MenuItem Selection in MVVM

From Dev

XUL get the value of MENUITEM selected

From Dev

How do I get the selected item from NSPopUpButton?

From Dev

WPF XAML - MenuItem with ItemSource and sub menu items

From Dev

MenuItem's sub menu don't open

From Dev

R shiny dashboard table menuitem with sub item

From Dev

How to change the color of the current selected menuitem?

From Dev

How to get the currently selected Menu or MenuItem

From Dev

Getting selected menuitem when it is dynamically created

From Dev

In gtk3+ for python how to get selected menuitem or index of menuitem selected?

From Dev

In gtk3+ for python how to get selected menuitem or index of menuitem selected?

From Dev

ConditionalPanel around menuItem Doesn't Display Properly

From Dev

popup menu and menuItem to display list of items

From Dev

How to Get the String of the Title of the Item Selected From a NSPopUpButton in Xcode(Swift or Objective C)

From Dev

Dynamically display selected option

From Dev

Display all selected checkboxes

From Dev

Display based on Option Selected

From Dev

Dynamically display selected option

From Dev

Display the dropdown selected value

From Dev

Display all selected files

From Dev

Display option selected with codeigniter

From Dev

how to display categories,sub categories and sub sub categories - codeigniter

From Dev

How to display sub menu horizontally?

From Dev

Display content from sub pages

From Dev

Print only selected record of a sub form

From Dev

Display selected menu Item has to display in the parent

From Dev

Display selected menu Item has to display in the parent

From Java

Swiftui display item selected by picker

Related Related

HotTag

Archive