<!--
{
  "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

[`emphasized`](/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.

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

Specifies whether the row is drawn using the floating style.

### Row Selection

[`selected`](/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.

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

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

### Row Grouping

[`groupRowStyle`](/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.

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

Draws the background of the row in the rectangle.

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

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

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

Draws the selected row.

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

Draws the horizontal separator between table rows.

### Accessing A Row Column View

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

Provides access to the given view at a particular column.

### Instance Properties

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

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

## Relationships

### Conforms To

[`NSCoding`](/documentation/Foundation/NSCoding)

[`CustomDebugStringConvertible`](/documentation/Swift/CustomDebugStringConvertible)

[`NSAnimatablePropertyContainer`](/documentation/AppKit/NSAnimatablePropertyContainer)

[`Sendable`](/documentation/Swift/Sendable)

[`NSAccessibilityRow`](/documentation/AppKit/NSAccessibilityRow)

[`NSStandardKeyBindingResponding`](/documentation/AppKit/NSStandardKeyBindingResponding)

[`NSUserActivityRestoring`](/documentation/AppKit/NSUserActivityRestoring)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`NSObjectProtocol`](/documentation/ObjectiveC/NSObjectProtocol)

[`CVarArg`](/documentation/Swift/CVarArg)

[`Equatable`](/documentation/Swift/Equatable)

[`NSAccessibilityProtocol`](/documentation/AppKit/NSAccessibilityProtocol)

[`NSAccessibilityGroup`](/documentation/AppKit/NSAccessibilityGroup)

[`NSTouchBarProvider`](/documentation/AppKit/NSTouchBarProvider)

[`NSDraggingDestination`](/documentation/AppKit/NSDraggingDestination)

[`NSUserInterfaceItemIdentification`](/documentation/AppKit/NSUserInterfaceItemIdentification)

[`NSAccessibilityElementProtocol`](/documentation/AppKit/NSAccessibilityElementProtocol)

[`Hashable`](/documentation/Swift/Hashable)

[`NSAppearanceCustomization`](/documentation/AppKit/NSAppearanceCustomization)

[`CustomStringConvertible`](/documentation/Swift/CustomStringConvertible)

### Inherits From

[`NSView`](/documentation/AppKit/NSView)

---

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)