<!--
{
  "availability" : [
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSTableView/drawRow(_:clipRect:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(cs)NSTableView(im)drawRow:clipRect:"
  },
  "title" : "drawRow(_:clipRect:)"
}
-->

# drawRow(_:clipRect:)

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

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

## Parameters

`row`

The row index.

`clipRect`

The intersecting rectangle.

## Discussion

[`NSCell`](/documentation/AppKit/NSCell)-based table views can override this method to customize the drawing of the rows.

> Note:
> For ``doc://com.apple.appkit/documentation/AppKit/NSView``-based table views, do not subclass or override this method. Instead, row drawing customization should be done by subclassing ``doc://com.apple.appkit/documentation/AppKit/NSTableRowView``.

## See Also

[`- (NSRange) columnsInRect:(NSRect) rect;`](/documentation/AppKit/NSTableView/columnsInRect:)

Returns a range of indexes for the table view’s columns that lie wholly or partially within the horizontal boundaries of the specified rectangle.



---

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)