Platforms to show: All Mac Windows Linux Cross-Platform

NSToolbarItemGroupMBS class

Super class: NSToolbarItemMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
class Cocoa Toolbar MBS MacControls Plugin 15.0 ✅ Yes ❌ No ❌ No ❌ No Desktop only
NSToolbarItemGroup is a subclass of NSToolbarItem which contains subitems.
Example
Dim t As New MyNSToolbarItemGroupMBS("test", Array("Hello", "World"), NSToolbarItemGroupMBS.SelectionModeSelectOne, Array("Hello", "World"))
t.label = "Test"

The views and labels of the subitems are used, but the parent's attributes take precedence.
Subclass of the NSToolbarItemMBS class.

Constants

Constant Value Description
ControlRepresentationAutomatic 0 One of the constants that indicates the display style for a grouped toolbar item. The system dynamically changes the display mode based on the available space.
ControlRepresentationExpanded 1 One of the constants that indicates the display style for a grouped toolbar item. The system displays the subitems of a grouped toolbar item horizontally.

Display Styles

Constant Value Description
ControlRepresentationCollapsed 2 The system displays the subitems of a grouped toolbar item as a menu.

Selection Modes

Constant Value Description
SelectionModeMomentary 2 The system temporarily highlights the select group item when the user selects the item.
SelectionModeSelectAny 1 The system toggles a highlight on any item selected.
SelectionModeSelectOne 0 The system displays a highlighted mode on the most recent item selected.

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.


NSTokenFieldMBS   -   NSToolbarItemMBS


The biggest plugin in space...