Platforms to show: All Mac Windows Linux Cross-Platform
CustomNSToolbarMBS class
Super class: NSToolbarMBS
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
class | Cocoa Toolbar | MBS MacControls Plugin | 11.3 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
Subclass of the NSToolbarMBS class.
- 12 events
- event allowsSizeMode(mode as Integer, SuperAllows as boolean) as boolean
- event canBeInsertedAtIndex(itemIdentifier as string, index as Integer) as Boolean New in 24.5
- event itemForItemIdentifier(identifier as string, willBeInsertedIntoToolbar as boolean) as NSToolbarItemMBS
- event toolbarAllowedItemIdentifiers as string()
- event toolbarDefaultItemIdentifiers as string()
- event toolbarDidRemoveItem(item as NSToolbarItemMBS, notification as NSNotificationMBS)
- event toolbarImmovableItemIdentifiers as string() New in 24.5
- event toolbarItemAction(item as NSToolbarItemMBS)
- event toolbarItemAllowsDuplicatesInToolbar(item as NSToolbarItemMBS) as boolean
- event toolbarItemValidate(item as NSToolbarItemMBS) as boolean
- event toolbarSelectableItemIdentifiers as string()
- event toolbarWillAddItem(item as NSToolbarItemMBS, notification as NSNotificationMBS)
- 2 methods
- method Constructor(Identifier as string)
- method Destructor
Super class NSToolbarMBS
- 19 properties
- property allowsDisplayModeCustomization as Boolean New in 24.5
- property allowsExtensionItems as Boolean
- property allowsUserCustomization as boolean
- property autosavesConfiguration as boolean
- property configurationDictionary as dictionary
- property configurationDictionaryData as Memoryblock
- property customizationPaletteIsRunning as boolean
- property displayMode as Integer
- property Handle as Integer
- property identifier as string
- property selectedItemIdentifier as string
- property showsBaselineSeparator as boolean
- property sizeMode as Integer
- property toolbarView as NSViewMBS
- property visible as boolean
- 12 methods
- method centeredItemIdentifiers as String() New in 24.5
- method Constructor(Handle as Integer)
- method Constructor(Identifier as string)
- method insertItemWithItemIdentifier(identifier as string, atIndex as Integer)
- method itemIdentifiers as String() New in 24.5
- method items as NSToolbarItemMBS()
- method removeItemAtIndex(index as Integer)
- method removeItemWithItemIdentifier(itemIdentifier as String) New in 24.5
- method runCustomizationPalette
- method setCenteredItemIdentifiers(Identifiers() as String) New in 24.5
- method validateVisibleItems
- method visibleItems as NSToolbarItemMBS()
- 2 shared methods
- shared method NSToolbarDidRemoveItemNotification as string
- shared method NSToolbarWillAddItemNotification as string
- 7 constants
Display Mode Constants
Constant | Value | Description |
---|---|---|
NSToolbarDisplayModeDefault | 0 |
The default display mode. |
NSToolbarDisplayModeIconAndLabel | 1 |
The toolbar will display icons and labels. |
NSToolbarDisplayModeIconOnly | 2 |
The toolbar will display only icons. |
NSToolbarDisplayModeLabelOnly | 3 |
The toolbar will display only labels. |
SizeMode Constants
Constant | Value | Description |
---|---|---|
NSToolbarSizeModeDefault | 0 |
The toolbar uses the system-defined default size, which is NSToolbarSizeModeRegular. |
NSToolbarSizeModeRegular | 1 |
The toolbar uses regular-sized controls and 32 by 32 pixel icons. |
NSToolbarSizeModeSmall | 2 |
The toolbar uses small-sized controls and 24 by 24 pixel icons. |
This class has no sub classes.
Some examples using this class:
Blog Entries
- MBS Xojo Plugins, version 24.5pr7
- MBS Real Studio Plugins, version 13.1pr13
- MBS Real Studio Plugins, version 13.1pr5
- MBS Real Studio Plugins, version 11.3pr4
Release notes
- Version 24.5
- Added toolbarImmovableItemIdentifiers and canBeInsertedAtIndex events to CustomNSToolbarMBS class.
The items on this page are in the following plugins: MBS MacControls Plugin.
CustomNSToolbarItemMBS - CustomNSViewMBS