Platforms to show: All Mac Windows Linux Cross-Platform

NSMenuToolbarItemMBS class   New in 24.5

Super class: NSToolbarItemMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
class Cocoa Toolbar MBS MacControls Plugin 24.5 ✅ Yes ❌ No ❌ No ❌ No Desktop only
A control that presents a menu in a window’s toolbar.

If you set an action on an NSMenuToolbarItem control item, the user invokes the action when clicking on the item through pressing and holding to display the menu. If you set an action on the item and showsIndicator to true, the system displays the indicator as a separate segment so the user can invoke the menu with a click on that segment.

If you don’t set an action on the NSMenuToolbarItem, a simple click invokes the menu, and the indicator is purely decorative.
Subclass of the NSToolbarItemMBS class.

Super class NSToolbarItemMBS

Constants

Constant Value Description
NSToolbarItemVisibilityPriorityHigh 1000 One of the visibility priority constants. When a toolbar does not have enough space to fit all its items, it must push some items into the overflow menu. These values allow you to suggest a priority for a toolbar item. more
NSToolbarItemVisibilityPriorityLow -1000 One of the visibility priority constants. When a toolbar does not have enough space to fit all its items, it must push some items into the overflow menu. These values allow you to suggest a priority for a toolbar item. more
NSToolbarItemVisibilityPriorityStandard 0 One of the visibility priority constants. When a toolbar does not have enough space to fit all its items, it must push some items into the overflow menu. These values allow you to suggest a priority for a toolbar item. more
NSToolbarItemVisibilityPriorityUser 2000 One of the visibility priority constants. When a toolbar does not have enough space to fit all its items, it must push some items into the overflow menu. These values allow you to suggest a priority for a toolbar item. more

This class has no sub classes.

Blog Entries

Release notes


The items on this page are in the following plugins: MBS MacControls Plugin.


NSMenuMBS   -   NSMetadataItemMBS


The biggest plugin in space...