NSToolbarItemValidation
Validation of a toolbar item.
Declaration
protocol NSToolbarItemValidation : NSObjectProtocolOverview
A toolbar item with a valid target and action is enabled by default. To allow a toolbar item to be disabled in certain situations, a toolbar item’s target can implement the validateToolbarItem(_:) method.