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

# drawSeparator(in:)

Draws the horizontal separator between table rows.

```
func drawSeparator(in dirtyRect: NSRect)
```

## Parameters

`dirtyRect`

The rectangle that requires drawing.

## Discussion

By default, the separator is only drawn if the enclosing table’s [`gridStyleMask`](/documentation/AppKit/NSTableView/gridStyleMask) is set to include a horizontal separator.

The separator should be drawn at the bottom of the row view, indicating a separation from this row and the next.

---

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)