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 |
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 |
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 |
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 |
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 |
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.
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | Cocoa Toolbar | MBS MacControls Plugin | 11.3 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
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.