Xojo Conferences
MBSSep2018MunichDE
XDCMay2019MiamiUSA

Platforms to show: All Mac Windows Linux Cross-Platform

NSToolbarItemMBS.allowsDuplicatesInToolbar as boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Cocoa MBS MacControls Plugin 11.3 Yes No No Yes, macOS only No
Function: Returns a Boolean value that indicates whether the receiver can be represented in the toolbar at more than one position.
Notes:
Returns true to allow dragging the receiver into the toolbar at more than one position, otherwise false.

You use this method by overriding it in a subclass to always return true; typically, you wouldn't call it. By default, if an item with the same identifier is already in the toolbar, dragging it in again will effectively move it to the new position.
(Read only property)

Feedback, Comments & Corrections

NSToolbarItemMBS.autovalidates as boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Cocoa MBS MacControls Plugin 11.3 Yes No No Yes, macOS only No
Function: Whether this item auto validates.
Notes:
By default NSToolbar automatically invokes the receiver's validate method on a regular basis. If your validate method is time consuming, you can disable auto validation on a per toolbar item basis.
(Read and Write property)

Feedback, Comments & Corrections

NSToolbarItemMBS.ClassName as String
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Cocoa MBS MacControls Plugin 15.0 Yes No No Yes, macOS only No
Function: The name of this NSWindow class.
Notes: (Read only property)

Feedback, Comments & Corrections

NSToolbarItemMBS.ClassPath as String
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Cocoa MBS MacControls Plugin 15.0 Yes No No Yes, macOS only No
Function: The path of this NSView class.
Notes:
Useful for debugging to know what super classes the window has.
(Read only property)

Feedback, Comments & Corrections

NSToolbarItemMBS.Enabled as boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Cocoa MBS MacControls Plugin 11.3 Yes No No Yes, macOS only No
Function: A Boolean value that indicates whether the receiver is enabled.
Notes:
For a view item, this method calls isEnabled/setEnabled on the view if it responds and returns the result.
(Read and Write property)

Feedback, Comments & Corrections

NSToolbarItemMBS.Handle as Integer
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Cocoa MBS MacControls Plugin 11.3 Yes No No Yes, macOS only No
Function: The internal reference to the NSToolbarItem object.
Notes: (Read and Write property)

Feedback, Comments & Corrections

NSToolbarItemMBS.image as NSImageMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Cocoa MBS MacControls Plugin 11.3 Yes No No Yes, macOS only No
Function: The image for this toolbar item.
Notes:
For a custom view item (one whose view has already been set), this method calls setImage on the view if it responds. If image contains multiple representations, NSToolbarItem chooses the most appropriately sized representation when displaying.
(Read and Write property)

Feedback, Comments & Corrections

NSToolbarItemMBS.itemIdentifier as string
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Cocoa MBS MacControls Plugin 11.3 Yes No No Yes, macOS only No
Function: The receiver's identifier.
Notes:
Returns the receiver's identifier, which was provided in the initializer.
(Read only property)

Feedback, Comments & Corrections

NSToolbarItemMBS.label as string
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Cocoa MBS MacControls Plugin 11.3 Yes No No Yes, macOS only No
Function: The label, which normally appears in the toolbar and in the overflow menu.
Notes:
The length of the label should be appropriate and not too long. The label may be empty.
(Read and Write property)

Feedback, Comments & Corrections

NSToolbarItemMBS.MaxSize as NSSizeMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Cocoa MBS MacControls Plugin 11.3 Yes No No Yes, macOS only No
Function: The maximum size.
Notes: (Read and Write property)

Feedback, Comments & Corrections

NSToolbarItemMBS.menuFormRepresentation as NSMenuItemMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Cocoa MBS MacControls Plugin 11.3 Yes No No Yes, macOS only No
Function: The menu form representation.
Notes:
By default, this method returns nil, even though there is a default menu form representation.
(Read and Write property)

Feedback, Comments & Corrections

NSToolbarItemMBS.MinSize as NSSizeMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Cocoa MBS MacControls Plugin 11.3 Yes No No Yes, macOS only No
Function: The minimum size.
Notes: (Read and Write property)

Feedback, Comments & Corrections

NSToolbarItemMBS.paletteLabel as string
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Cocoa MBS MacControls Plugin 11.3 Yes No No Yes, macOS only No
Function: The label that appears when the receiver is in the customization palette.
Notes:
An item must have a palette label if the customization palette is to be used, and for most items it is reasonable to set paletteLabel to be the same value as label. One reason for paletteLabel to be different from label would be if it's more descriptive; another might be if there is no label.
(Read and Write property)

Feedback, Comments & Corrections

NSToolbarItemMBS.tag as Integer
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Cocoa MBS MacControls Plugin 11.3 Yes No No Yes, macOS only No
Function: The tag value.
Notes:
You can use the tag for your own custom purpose.
(Read and Write property)

Feedback, Comments & Corrections

NSToolbarItemMBS.toolbar as NSToolbarMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Cocoa MBS MacControls Plugin 11.3 Yes No No Yes, macOS only No
Function: Returns the toolbar that is using the receiver.
Notes: (Read only property)

Feedback, Comments & Corrections

NSToolbarItemMBS.toolTip as string
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Cocoa MBS MacControls Plugin 11.3 Yes No No Yes, macOS only No
Function: The tooltip to be used when the receiver is displayed in the toolbar.
Notes: (Read and Write property)

Feedback, Comments & Corrections

NSToolbarItemMBS.view as NSViewMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Cocoa MBS MacControls Plugin 11.3 Yes No No Yes, macOS only No
Function: The custom view for this item.
Notes:
view: The view for the receiver. The view and all of its contents must conform to the NSCoding protocol if the toolbar supports customization.

Note that many of the set/get methods are implemented by calls forwarded to view, if it responds to it.
(Read and Write property)

Feedback, Comments & Corrections

NSToolbarItemMBS.visibilityPriority as Integer
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Cocoa MBS MacControls Plugin 11.3 Yes No No Yes, macOS only No
Function: The visibility priority.
Notes: (Read and Write property)

Feedback, Comments & Corrections

The items on this page are in the following plugins: MBS MacControls Plugin.




Links
MBS Xojo Plugins