---
title: NSTableCellView
framework: appkit
role: symbol
role_heading: Class
path: appkit/nstablecellview
---

# NSTableCellView

A reusable container view shown for a particular cell in a table view that uses rows for content.

## Declaration

```swift
class NSTableCellView
```

## Overview

Overview The imageView and textField properties are connected in Interface Builder. Additional properties can be added by subclassing NSTableCellView and adding the required properties and connecting them programmatically or in Interface Builder. The objectValue is used when setting the value of the view cell by the tableView(_:objectValueFor:row:) method in the NSTableViewDataSource. If you use your own custom view cells that are not based on NSTableCellView you should implement this property in order to be able to receive changes to cell values.

## Topics

### Represented Object

- [objectValue](appkit/nstablecellview/objectvalue.md)

### Displayed Items

- [imageView](appkit/nstablecellview/imageview.md)
- [textField](appkit/nstablecellview/textfield.md)

### Getting and Setting the Background Style

- [backgroundStyle](appkit/nstablecellview/backgroundstyle.md)

### Getting and Setting the Row Size Style

- [rowSizeStyle](appkit/nstablecellview/rowsizestyle.md)

### Dragging Images

- [draggingImageComponents](appkit/nstablecellview/draggingimagecomponents.md)

## Relationships

### Inherits From

- [NSView](appkit/nsview.md)

### Conforms To

- [CVarArg](swift/cvararg.md)
- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [NSAccessibilityElementProtocol](appkit/nsaccessibilityelementprotocol.md)
- [NSAccessibilityProtocol](appkit/nsaccessibilityprotocol.md)
- [NSAnimatablePropertyContainer](appkit/nsanimatablepropertycontainer.md)
- [NSAppearanceCustomization](appkit/nsappearancecustomization.md)
- [NSCoding](foundation/nscoding.md)
- [NSDraggingDestination](appkit/nsdraggingdestination.md)
- [NSObjectProtocol](objectivec/nsobjectprotocol.md)
- [NSStandardKeyBindingResponding](appkit/nsstandardkeybindingresponding.md)
- [NSTouchBarProvider](appkit/nstouchbarprovider.md)
- [NSUserActivityRestoring](appkit/nsuseractivityrestoring.md)
- [NSUserInterfaceItemIdentification](appkit/nsuserinterfaceitemidentification.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Views

- [NSTableView](appkit/nstableview.md)
