Declared in NSControl+RACCommandSupport.h

Tasks

  •   rac_command

    Sets the control’s command. When the control is clicked, the command is executed with the sender of the event. The control’s enabledness is bound to the command’s canExecute.

    property

Properties

rac_command

Sets the control’s command. When the control is clicked, the command is executed with the sender of the event. The control’s enabledness is bound to the command’s canExecute.

@property (nonatomic, strong) RACCommand *rac_command

Discussion

Sets the control’s command. When the control is clicked, the command is executed with the sender of the event. The control’s enabledness is bound to the command’s canExecute.

Note: this will reset the control’s target and action.

Declared In

NSControl+RACCommandSupport.h