Contents

action

The default action-message selector associated with the control.

Declaration

var action: Selector? { get set }

Discussion

This property contains the action message selector of the receiver’s cell. Controls that support multiple cells (such as NSMatrix and NSForm) must supply the appropriate action-message selector in this property. Specify NULL to prevent action messages from being sent to the receiver’s target.

If you want the action-message selector for a control that has multiple cells, it is better to get the selector directly from the cell’s own action property.

See Also

Implementing the Target-Action Mechanism