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.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...