---
title: target
framework: appkit
role: symbol
role_heading: Instance Property
path: appkit/nscell/target
---

# target

The object that receives the cell’s action messages.

## Declaration

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

## Discussion

Discussion The value of this property is the object that implements the selector specified by the 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 internalInconsistencyException. Subclasses are expected to override this property as part of their target/action implementation.

## See Also

### Managing the Target and Action

- [action](appkit/nscell/action.md)
- [isContinuous](appkit/nscell/iscontinuous.md)
- [sendAction(on:)](appkit/nscell/sendaction(on:).md)
