Instance Method

validateCommand:

Asks the receiving responder to validate the command.

Declaration

- (void)validateCommand:(UICommand *)command;

Parameters

command

A mutable command object.

Discussion

Override this method in your view controller to make changes to a command before the command system renders it as a menu item.

See Also

Building and Validating Commands

- canPerformAction:withSender:

Requests the receiving responder to enable or disable the specified command in the user interface.

- targetForAction:withSender:

Returns the target object that responds to an action.