Platforms to show: All Mac Windows Linux Cross-Platform

NSTrackingSeparatorToolbarItemMBS class

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 toolbar separator that aligns with the vertical split view in the same window.

Use a NSTrackingSeparatorToolbarItem to divide an NSToolbarMBS into sections that visually align with the views on either side of the divider of the splitView. This keeps NSToolbarItemMBS objects above the content that’s the target for the item’s action.

The splitView must be in the same window as the toolbar containing this item before showing the toolbar.
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

Styles

Constant Value Description
NSToolbarItemStylePlain 0 A plain style maintains the item’s standard appearance.
NSToolbarItemStyleProminent 1 For macOS 26 or newer.

This class has no sub classes.

Blog Entries

Release notes

Some related classes:


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


NSTouchMBS   -   NSUbiquitousKeyValueStoreMBS


The biggest plugin in space...