---
title: action
framework: appkit
role: symbol
role_heading: Instance Property
path: appkit/nscontrol/action
---

# action

The default action-message selector associated with the control.

## Declaration

```swift
var action: Selector? { get set }
```

## Discussion

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

- [target](appkit/nscontrol/target.md)
- [isContinuous](appkit/nscontrol/iscontinuous.md)
- [sendAction(_:to:)](appkit/nscontrol/sendaction(_:to:).md)
- [sendAction(on:)](appkit/nscontrol/sendaction(on:).md)
