<!--
{
  "availability" : [
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSCell/action",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(cs)NSCell(py)action"
  },
  "title" : "action"
}
-->

# action

The action performed by the cell.

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

## Discussion

The value of this property is the selector to call on the cell’s [`target`](/documentation/AppKit/NSCell/target) object. Set the value of this property to `nil` to stop the delivery of action messages.

The default value of this property is `nil`. Setting the value of this property raises with <doc://com.apple.documentation/documentation/Foundation/NSExceptionName/internalInconsistencyException>. Subclasses are expected to override this property as part of their target/action implementation.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)