Platforms to show: All Mac Windows Linux Cross-Platform
NSToolbarMBS class
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
class | Cocoa Toolbar | MBS MacControls Plugin | 11.3 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
- 19 properties
- property allowsDisplayModeCustomization as Boolean
- 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()
- method Constructor(Handle as Integer)
- method Constructor(Identifier as string)
- method insertItemWithItemIdentifier(identifier as string, atIndex as Integer)
- method itemIdentifiers as String()
- method items as NSToolbarItemMBS()
- method removeItemAtIndex(index as Integer)
- method removeItemWithItemIdentifier(itemIdentifier as String)
- method runCustomizationPalette
- method setCenteredItemIdentifiers(Identifiers() as String)
- 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. |
Sub classes:
Blog Entries
- MBS Xojo Plugins, version 24.5pr7
- MBS Xojo Plugins, version 24.5pr3
- MBS Xojo Plugins, version 21.2pr1
- MBS Xojo Plugins, version 21.1pr4
- MBS Xojo Plugins, version 17.5pr9
- MBS Xojo / Real Studio Plugins, version 14.3pr10
- Please don't call constructors outside new or constructor
- MBS Real Studio Plugins, version 11.3pr4
Release notes
- Version 24.5
- Added allowsDisplayModeCustomization, removeItemWithItemIdentifier and itemIdentifiers methods to NSToolbarMBS class.
- Added centeredItemIdentifiers method to NSToolbarMBS class.
- Deprecated fullScreenAccessoryView, fullScreenAccessoryViewMinHeight, fullScreenAccessoryViewMaxHeight and centeredItemIdentifier properties for NSToolbarMBS class.
- Version 21.2
- Added more methods to NSToolbarItemMBS and NSToolbarMBS classes.
- Version 21.1
- Added Constructor for handle to UNNotificationMBS, UNNotificationContentMBS, NSToolbarItemMBS and NSToolbarMBS.
- Version 17.5
- Improved NSToolbarMBS.toolbarView to work on 64-bit.
Some methods using this class:
- DesktopWindow.NSToolbarMBS as NSToolbarMBS
- Window.NSToolbarMBS as NSToolbarMBS
Some properties using for this class:
- NSToolbarItemMBS.toolbar as NSToolbarMBS
Some examples using this class:
- /MacControls/Toolbar/Toolbar add textfield
- /MacControls/Toolbar/Toolbar buttons/Toolbar buttons
- /MacControls/Toolbar/Toolbar with retina Icons
Some related classes:
- class CustomNSToolbarMBS
- class NSToolbarItemMBS
- class NSViewMBS
- class UNNotificationContentMBS
- class UNNotificationMBS
The items on this page are in the following plugins: MBS MacControls Plugin.
NSToolbarItemMBS - NSTouchBarItemMBS
