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

# objectValue

The object that represents the cell data.

```
var objectValue: Any? { get set }
```

## Discussion

The `objectValue` is automatically set by the table when using bindings or is the object returned by the [`NSTableViewDataSource`](/documentation/AppKit/NSTableViewDataSource) protocol method [`tableView(_:objectValueFor:row:)`](/documentation/AppKit/NSTableViewDataSource/tableView(_:objectValueFor:row:)).

## See Also

[`tableView(_:objectValueFor:row:)`](/documentation/AppKit/NSTableViewDataSource/tableView(_:objectValueFor:row:))

Called by the table view to return the data object associated with the specified row and column.

[Drag and Drop](/documentation/AppKit/drag-and-drop)

Support the direct manipulation of your app’s content using drag and drop.

[Table View](/documentation/AppKit/table-view)

Display custom data in rows and columns.



---

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)