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

# target

The object that receives the cell’s action messages.

```
weak var target: AnyObject? { get set }
```

## Discussion

The value of this property is the object that implements the selector specified by the [`action`](/documentation/AppKit/NSCell/action) property. 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)