Platforms to show: All Mac Windows Linux Cross-Platform
NSToolbarItemMBS class
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
class | Cocoa Toolbar | MBS MacControls Plugin | 11.3 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
Each item in an NSToolbar is an instance of NSToolbarItem.
- 21 properties
- property allowsDuplicatesInToolbar as boolean
- property autovalidates as boolean
- property Bordered as Boolean
- property ClassName as String
- property ClassPath as String
- property Enabled as boolean
- property Handle as Integer
- property image as NSImageMBS
- property itemIdentifier as string
- property label as string
- property MaxSize as NSSizeMBS
- property menuFormRepresentation as NSMenuItemMBS
- property MinSize as NSSizeMBS
- property Navigational as Boolean
- property paletteLabel as string
- property tag as Integer
- property Title as String
- property toolbar as NSToolbarMBS
- property toolTip as string
- property view as NSViewMBS
- property visibilityPriority as Integer
- 3 methods
- method Constructor(Handle as Integer)
- method Constructor(itemIdentifier as string)
- method validate
- 10 shared methods
- shared method NSToolbarCloudSharingItemIdentifier as string
- shared method NSToolbarCustomizeToolbarItemIdentifier as string
- shared method NSToolbarFlexibleSpaceItemIdentifier as string
- shared method NSToolbarPrintItemIdentifier as string
- shared method NSToolbarSeparatorItemIdentifier as string
- shared method NSToolbarShowColorsItemIdentifier as string
- shared method NSToolbarShowFontsItemIdentifier as string
- shared method NSToolbarSidebarTrackingSeparatorItemIdentifier as string
- shared method NSToolbarSpaceItemIdentifier as string
- shared method NSToolbarToggleSidebarItemIdentifier as string
- 4 constants
Constants
Constant | Value | Description |
---|---|---|
NSToolbarItemVisibilityPriorityHigh | 1000 | One of the visibility priority constants. When a toolbar does not have enough space to fit all its items, it must push some items into the overflow menu. These values allow you to suggest a priority for a toolbar item. more |
NSToolbarItemVisibilityPriorityLow | -1000 | One of the visibility priority constants. When a toolbar does not have enough space to fit all its items, it must push some items into the overflow menu. These values allow you to suggest a priority for a toolbar item. more |
NSToolbarItemVisibilityPriorityStandard | 0 | One of the visibility priority constants. When a toolbar does not have enough space to fit all its items, it must push some items into the overflow menu. These values allow you to suggest a priority for a toolbar item. more |
NSToolbarItemVisibilityPriorityUser | 2000 | One of the visibility priority constants. When a toolbar does not have enough space to fit all its items, it must push some items into the overflow menu. These values allow you to suggest a priority for a toolbar item. more |
Sub classes:
Some methods using this class:
- NSToolbarItemGroupMBS.SetSubItems(items() as NSToolbarItemMBS)
- NSToolbarItemGroupMBS.subitems as NSToolbarItemMBS()
- NSToolbarMBS.items as NSToolbarItemMBS()
- NSToolbarMBS.visibleItems as NSToolbarItemMBS()
Some events using this class:
- CustomNSToolbarMBS.itemForItemIdentifier(identifier as string, willBeInsertedIntoToolbar as boolean) as NSToolbarItemMBS
- CustomNSToolbarMBS.toolbarDidRemoveItem(item as NSToolbarItemMBS, notification as NSNotificationMBS)
- CustomNSToolbarMBS.toolbarItemAction(item as NSToolbarItemMBS)
- CustomNSToolbarMBS.toolbarItemAllowsDuplicatesInToolbar(item as NSToolbarItemMBS) as boolean
- CustomNSToolbarMBS.toolbarItemValidate(item as NSToolbarItemMBS) as boolean
- CustomNSToolbarMBS.toolbarWillAddItem(item as NSToolbarItemMBS, notification as NSNotificationMBS)
Some examples using this class:
- /MacControls/Toolbar/Toolbar add textfield
- /MacControls/Toolbar/Toolbar buttons/Toolbar buttons
- /MacControls/Toolbar/Toolbar customized
- /MacControls/Toolbar/Toolbar with retina Icons
Blog Entries
- News from the MBS Xojo Plugins Version 21.2
- MBS Xojo Plugins, version 21.2pr1
- MBS Xojo Plugins, version 21.1pr4
- MBS Real Studio Plugins, version 11.3pr4
Release notes
- Version 21.2
- Added more methods to NSToolbarItemMBS and NSToolbarMBS classes.
- Version 21.1
- Added Constructor for handle to UNNotificationMBS, UNNotificationContentMBS, NSToolbarItemMBS and NSToolbarMBS.
The items on this page are in the following plugins: MBS MacControls Plugin.
NSToolbarItemGroupMBS - NSToolbarMBS