Protocol

NSToolbarItemValidation

Validation of a toolbar item.

Declaration

@protocol NSToolbarItemValidation

Overview

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.

Topics

Instance Methods

- validateToolbarItem:

If this method is implemented and returns NO, NSToolbar will disable theItem; returning YES causes theItem to be enabled.

Required.

Relationships

Inherits From

See Also

View

NSToolbar

An object that manages the space immediately below a window's title bar and above your app's custom content.