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

# NSTableRowView

The view shown for a row in a table view.

```
class NSTableRowView
```

## Overview

[`NSTableRowView`](/documentation/AppKit/NSTableRowView) is responsible for displaying attributes associated with the row, including the selection highlight, and group row look.

## Topics

### Display Style

[`isEmphasized`](/documentation/AppKit/NSTableRowView/isEmphasized)

Determines whether the row will draw with the alternate or secondary color (unless overridden).

[`interiorBackgroundStyle`](/documentation/AppKit/NSTableRowView/interiorBackgroundStyle)

Specifies how the subviews should draw.

[`isFloating`](/documentation/AppKit/NSTableRowView/isFloating)

Specifies whether the row is drawn using the floating style.

### Row Selection

[`isSelected`](/documentation/AppKit/NSTableRowView/isSelected)

Determines whether the row is selected.

[`selectionHighlightStyle`](/documentation/AppKit/NSTableRowView/selectionHighlightStyle)

Specifies the selection highlight style.

### Drag and Drop

[`draggingDestinationFeedbackStyle`](/documentation/AppKit/NSTableRowView/draggingDestinationFeedbackStyle)

Specifies the dragging destination feedback style.

[`indentationForDropOperation`](/documentation/AppKit/NSTableRowView/indentationForDropOperation)

Defines the amount the drag target for a row should be indented.

[`isTargetForDropOperation`](/documentation/AppKit/NSTableRowView/isTargetForDropOperation)

Specifies whether this row will draw a drop indicator based on the current dragging feedback style.

### Row Grouping

[`isGroupRowStyle`](/documentation/AppKit/NSTableRowView/isGroupRowStyle)

Specifies whether this row view is a group row.

[`numberOfColumns`](/documentation/AppKit/NSTableRowView/numberOfColumns)

Returns the number of columns represented by views in the table row view.

### Overriding Row View Display Characteristics

[`backgroundColor`](/documentation/AppKit/NSTableRowView/backgroundColor)

The background color of the row.

[`drawBackground(in:)`](/documentation/AppKit/NSTableRowView/drawBackground(in:))

Draws the background of the row in the rectangle.

[`drawDraggingDestinationFeedback(in:)`](/documentation/AppKit/NSTableRowView/drawDraggingDestinationFeedback(in:))

Draws the row’s dragging destination feedback when the entire row is a drop target.

[`drawSelection(in:)`](/documentation/AppKit/NSTableRowView/drawSelection(in:))

Draws the selected row.

[`drawSeparator(in:)`](/documentation/AppKit/NSTableRowView/drawSeparator(in:))

Draws the horizontal separator between table rows.

### Accessing A Row Column View

[`view(atColumn:)`](/documentation/AppKit/NSTableRowView/view(atColumn:))

Provides access to the given view at a particular column.

### Instance Properties

[`isNextRowSelected`](/documentation/AppKit/NSTableRowView/isNextRowSelected)

[`isPreviousRowSelected`](/documentation/AppKit/NSTableRowView/isPreviousRowSelected)



---

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)