Instance Method

validateUserInterfaceItem:

Returns a Boolean value that indicates whether a given user interface item should be enabled.

Declaration

- (BOOL)validateUserInterfaceItem:(id<NSValidatedUserInterfaceItem>)item;

Parameters

item

The user interface item to validate. You can send anItem the action and tag messages.

Return Value

YES if item should be enabled, otherwise NO.

Discussion

Subclasses can override this method to perform additional validations. Subclasses should call the underlying method on super in their implementation for items they don’t handle themselves.