NSToolbarItem
NSToolbarItem is a class in AppKit that represents a single element in an NSToolbar. Each item can display an image with an optional label or host a custom view. It provides metadata such as a unique identifier, a localization-friendly label, and a tooltip. An item can trigger code through a target-action pair and can be enabled or disabled.
An NSToolbarItem has an itemIdentifier property (NSToolbarItem.Identifier) that identifies the item within a toolbar and is
Appearance and customization metadata include the label, paletteLabel, and toolTip. The label is the item's visible
NSToolbarItem supports a custom view via its view property. If a view is supplied, the toolbar displays
In practice, NSToolbarItem instances are created and supplied to a toolbar by its delegate, typically through