Platforms to show: All Mac Windows Linux Cross-Platform

Back to NSToolbarMBS class.

NSToolbarMBS.allowsExtensionItems as Boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa Toolbar MBS MacControls Plugin 21.2 ✅ Yes ❌ No ❌ No ❌ No Desktop only
A Boolean value that indicates whether the toolbar can add items for Action extensions.

When true, the toolbar can dynamically create toolbar items for Action extensions in the toolbar configuration panel. To be included, an extension needs to set the NSExtensionServiceAllowsToolbarItem key to true in its Info.plist.

The default value is false.
(Read and Write property)

NSToolbarMBS.allowsUserCustomization as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa Toolbar MBS MacControls Plugin 11.3 ✅ Yes ❌ No ❌ No ❌ No Desktop only
A Boolean value that indicates whether users are allowed to modify the toolbar.

True if users are allowed to modify the toolbar, false otherwise. The default is false.

If the value is false, then the Customize Toolbar… menu item is disabled and other modification is disabled. This attribute does not affect the user's ability to show or hide the toolbar.
(Read and Write property)

Some examples using this property:

NSToolbarMBS.autosavesConfiguration as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa Toolbar MBS MacControls Plugin 11.3 ✅ Yes ❌ No ❌ No ❌ No Desktop only
A Boolean value that indicates whether the receiver autosaves its configuration.

True if the receiver autosaves its configuration, otherwise false. The default is false.

When autosaving is enabled, the receiver will automatically write the toolbar settings to user defaults if the toolbar configuration changes. The toolbar's configuration is identified in user defaults by the toolbar identifier. If there are multiple toolbars active with the same identifier, they all share the same configuration.
(Read and Write property)

NSToolbarMBS.centeredItemIdentifier as String

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa Toolbar MBS MacControls Plugin 21.2 ✅ Yes ❌ No ❌ No ❌ No Desktop only
The center item identifier.

The item with the specified identifier will be positioned in the absolute center of the Toolbar relative to the window assuming space allows. When the window shrinks, the highest priority is to have the most items visible. Thus, centering is broken first (it'll be pushed off to the left/right as necessary). Next, items will be shrunk down a little at a time towards their min size, at the same rate. Finally, items will be removed based on their visibility priority.

This property is archived.
(Read and Write property)

NSToolbarMBS.configurationDictionary as dictionary

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa Toolbar MBS MacControls Plugin 11.3 ✅ Yes ❌ No ❌ No ❌ No Desktop only
The receiver's configuration as a dictionary.

Set/get a dictionary containing configuration information for the toolbar.

Contains displayMode, isVisible, and a list of the item identifiers currently in the toolbar.
Do not depend on any details of the normal contents of a configuration dictionary.
(Read and Write property)

NSToolbarMBS.configurationDictionaryData as Memoryblock

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa Toolbar MBS MacControls Plugin 14.3 ✅ Yes ❌ No ❌ No ❌ No Desktop only
The receiver's configuration as a memoryblock.

Set/get a memoryblock containing configuration information for the toolbar.

Contains displayMode, isVisible, and a list of the item identifiers currently in the toolbar.
Do not depend on any details of the normal contents of a configuration dictionary.

you can read/write the data to preferences.
(Read and Write property)

NSToolbarMBS.customizationPaletteIsRunning as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa Toolbar MBS MacControls Plugin 11.3 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Returns a Boolean value that indicates whether the receiver's customization palette is running (in use).

True if the receiver's customization palette is running, otherwise false.
(Read only property)

NSToolbarMBS.displayMode as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa Toolbar MBS MacControls Plugin 11.3 ✅ Yes ❌ No ❌ No ❌ No Desktop only
The receiver's display mode.

(Read and Write property)

NSToolbarMBS.fullScreenAccessoryView as NSViewMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa Toolbar MBS MacControls Plugin 11.3 ✅ Yes ❌ No ❌ No ❌ No Desktop only
The fullscreen mode accessory view.

Requires Mac OS X 10.7.
(Read and Write property)

NSToolbarMBS.fullScreenAccessoryViewMaxHeight as Double

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa Toolbar MBS MacControls Plugin 11.3 ✅ Yes ❌ No ❌ No ❌ No Desktop only
The fullscreen mode accessory view's maximum height.

Requires Mac OS X 10.7.
(Read and Write property)

NSToolbarMBS.fullScreenAccessoryViewMinHeight as Double

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa Toolbar MBS MacControls Plugin 11.3 ✅ Yes ❌ No ❌ No ❌ No Desktop only
The fullscreen mode accessory view's minimum height.

Requires Mac OS X 10.7.
(Read and Write property)

NSToolbarMBS.Handle as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa Toolbar MBS MacControls Plugin 11.3 ✅ Yes ❌ No ❌ No ❌ No Desktop only
The internal reference for this object.

(Read and Write property)

NSToolbarMBS.identifier as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa Toolbar MBS MacControls Plugin 11.3 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Returns the receiver's identifier.

Returns the receiver's identifier, a string used by the class to identify the kind of toolbar.

Within the application all toolbars with the same identifier are synchronized to maintain the same state, including for example, the display mode and item order. The identifier is used as the autosave name for toolbars that save their configuration.
(Read only property)

NSToolbarMBS.selectedItemIdentifier as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa Toolbar MBS MacControls Plugin 11.3 ✅ Yes ❌ No ❌ No ❌ No Desktop only
The selected item to the specified toolbar item.

Typically, a toolbar will manage the selection of items automatically. This method can be used to select identifiers of custom view items, or to force a selection change. See toolbarSelectableItemIdentifiers for more details. If itemIdentifier is not recognized by the receiver, the current selected item identifier does not change.
(Read and Write property)

NSToolbarMBS.showsBaselineSeparator as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa Toolbar MBS MacControls Plugin 11.3 ✅ Yes ❌ No ❌ No ❌ No Desktop only
A Boolean value that indicates whether the toolbar shows the separator between the toolbar and the main window contents.

True if the toolbar shows the separator between the toolbar and the main window contents, otherwise false. The default is true.
(Read and Write property)

NSToolbarMBS.sizeMode as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa Toolbar MBS MacControls Plugin 11.3 ✅ Yes ❌ No ❌ No ❌ No Desktop only
The size mode.

If there is no icon of the given size for a toolbar item, the toolbar item creates one by scaling an icon of another size.
(Read and Write property)

Some examples using this property:

NSToolbarMBS.toolbarView as NSViewMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa Toolbar MBS MacControls Plugin 11.3 ✅ Yes ❌ No ❌ No ❌ No Desktop only
The internal NSView used for displaying the toolbar.

Useful to query values like the bounds of the toolbar.

Works for 64-bit with 17.5 version, but returns nil in older versions.
(Read only property)

NSToolbarMBS.visible as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa Toolbar MBS MacControls Plugin 11.3 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Whether the receiver is visible or hidden.

True to indicate the receiver should be made visible, false to indicate it should be hidden.
(Read and Write property)

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


The biggest plugin in space...