---
title: "drawRow(_:clipRect:)"
framework: appkit
role: symbol
role_heading: Instance Method
path: "appkit/nstableview/drawrow(_:cliprect:)"
---

# drawRow(_:clipRect:)

Draws the cells for the row at rowIndex in the columns that intersect clipRect.

## Declaration

```swift
func drawRow(_ row: Int, clipRect: NSRect)
```

## Parameters

- `row`: The row index.
- `clipRect`: The intersecting rectangle.

## Discussion

Discussion NSCell-based table views can override this method to customize the drawing of the rows. note: For NSView-based table views, do not subclass or override this method. Instead, row drawing customization should be done by subclassing NSTableRowView.

## See Also

### Drawing

- [drawGrid(inClipRect:)](appkit/nstableview/drawgrid(incliprect:).md)
- [highlightSelection(inClipRect:)](appkit/nstableview/highlightselection(incliprect:).md)
- [drawBackground(inClipRect:)](appkit/nstableview/drawbackground(incliprect:).md)
