Platforms to show: All Mac Windows Linux Cross-Platform

Back to NSToolbarItemMBS class.

NSToolbarItemMBS.Constructor(Handle as Integer)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Cocoa Toolbar MBS MacControls Plugin 21.1 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Constructor for creating an instanced based on an existing handle.

Useful if you get a NSToolbarItem reference from a declare.
The object is retained.

See also:

NSToolbarItemMBS.Constructor(itemIdentifier as string)

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

itemIdentifier: The identifier for the receiver. itemIdentifier is never seen by users and should not be localized.

The identifier is used by the toolbar and its delegate to identify the kind of the toolbar item.

See also:

NSToolbarItemMBS.copy as NSToolbarItemMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Cocoa Toolbar MBS MacControls Plugin 24.5 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Creates a copy of the toolbar item.

You can't really copy CustomNSToolbarItemMBS objects.

NSToolbarItemMBS.possibleLabels as String()

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Cocoa Toolbar MBS MacControls Plugin 24.5 ✅ Yes ❌ No ❌ No ❌ No Desktop only
The set of labels that the item might display.

Use this property to specify all of the labels you might possibly use for the toolbar item. Specify all strings in the current locale. To ensure there’s space for the longest label, the item sizes itself using the strings you provide.

NSToolbarItemMBS.setPossibleLabels(Labels() as String)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Cocoa Toolbar MBS MacControls Plugin 24.5 ✅ Yes ❌ No ❌ No ❌ No Desktop only
The set of labels that the item might display.

Use this property to specify all of the labels you might possibly use for the toolbar item. Specify all strings in the current locale. To ensure there’s space for the longest label, the item sizes itself using the strings you provide.

NSToolbarItemMBS.validate

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Cocoa Toolbar MBS MacControls Plugin 11.3 ✅ Yes ❌ No ❌ No ❌ No Desktop only
This method is called by the receiver's toolbar during validation.

You may invoke this method directly if you have disabled automatic validation for an item—typically you do this for performance reasons if your validation code is slow.

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


The biggest plugin in space...