Platforms to show: All Mac Windows Linux Cross-Platform

Back to NSToolbarItemMBS class.

NSToolbarItemMBS.NSToolbarCloudSharingItemIdentifier as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Cocoa Toolbar MBS MacControls Plugin 21.2 ✅ Yes ❌ No ❌ No ❌ No Desktop only
A standard toolbar item identifier for cloud sharing via NSSharingServiceNameCloudSharing.

It validates itself and modifies its appearance by using the NSCloudSharingValidation protocol. It sends performCloudSharing to the firstResponder.
Requires macOS 10.12 or newer.

NSToolbarItemMBS.NSToolbarCustomizeToolbarItemIdentifier as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Cocoa Toolbar MBS MacControls Plugin 11.3 ✅ Yes ❌ No ❌ No ❌ No Desktop only
One of the standard toolbar item identifiers.

The Customize item. Shows the customization palette.

Deprecated. In OS X v10.7 and later the customization icon has been removed from the toolbar and customization palettes. This constant is ignored.

NSToolbarItemMBS.NSToolbarFlexibleSpaceItemIdentifier as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Cocoa Toolbar MBS MacControls Plugin 11.3 ✅ Yes ❌ No ❌ No ❌ No Desktop only
One of the standard toolbar item identifiers.

The Flexible Space item.

Some examples using this method:

NSToolbarItemMBS.NSToolbarInspectorTrackingSeparatorItemIdentifier as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Cocoa Toolbar MBS MacControls Plugin 24.5 ✅ Yes ❌ No ❌ No ❌ No Desktop only
A standard item for cloud sharing via NSSharingServiceNameCloudSharing. It validates itself and modifies its appearance by using the NSCloudSharingValidation protocol. It sends performCloudSharing to the firstResponder.

NSToolbarItemMBS.NSToolbarPrintItemIdentifier as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Cocoa Toolbar MBS MacControls Plugin 11.3 ✅ Yes ❌ No ❌ No ❌ No Desktop only
One of the standard toolbar item identifiers.

The Print item. Sends printDocument to firstResponder, but you can change this in toolbarWillAddItem if you need to do so.

NSToolbarItemMBS.NSToolbarSeparatorItemIdentifier as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Cocoa Toolbar MBS MacControls Plugin 11.3 ✅ Yes ❌ No ❌ No ❌ No Desktop only
One of the standard toolbar item identifiers.

The Separator item.

Some examples using this method:

NSToolbarItemMBS.NSToolbarShowColorsItemIdentifier as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Cocoa Toolbar MBS MacControls Plugin 11.3 ✅ Yes ❌ No ❌ No ❌ No Desktop only
One of the standard toolbar item identifiers.

The Colors item. Shows the color panel.

NSToolbarItemMBS.NSToolbarShowFontsItemIdentifier as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Cocoa Toolbar MBS MacControls Plugin 11.3 ✅ Yes ❌ No ❌ No ❌ No Desktop only
One of the standard toolbar item identifiers.

The Fonts item. Shows the font panel.

NSToolbarItemMBS.NSToolbarSidebarTrackingSeparatorItemIdentifier as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Cocoa Toolbar MBS MacControls Plugin 21.2 ✅ Yes ❌ No ❌ No ❌ No Desktop only
One of the standard identifiers.

Requires macOS 11.0 or newer.

NSToolbarItemMBS.NSToolbarSpaceItemIdentifier as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Cocoa Toolbar MBS MacControls Plugin 11.3 ✅ Yes ❌ No ❌ No ❌ No Desktop only
One of the standard toolbar item identifiers.

The Space item.

NSToolbarItemMBS.NSToolbarToggleInspectorItemIdentifier as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Cocoa Toolbar MBS MacControls Plugin 24.5 ✅ Yes ❌ No ❌ No ❌ No Desktop only
A standard item that is configured to send toggleInspector to the firstResponder when invoked.

NSToolbarItemMBS.NSToolbarToggleSidebarItemIdentifier as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Cocoa Toolbar MBS MacControls Plugin 21.2 ✅ Yes ❌ No ❌ No ❌ No Desktop only
A standard toolbar item identifier for sidebars.

It sends toggleSidebar to the firstResponder.
Requires macOS 10.11 or newer.

NSToolbarItemMBS.NSToolbarWritingToolsItemIdentifier as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Cocoa Toolbar MBS MacControls Plugin 25.0 ✅ Yes ❌ No ❌ No ❌ No Desktop only
One of the standard toolbar item identifiers.

A standard item that is configured to send -showWritingTools: to the firstResponder when invoked.
Requires macOS 15.2 or newer.

Text value is currently "NSToolbarWritingToolsItem".

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


The biggest plugin in space...