---
title: "highlightSelection(inClipRect:)"
framework: appkit
role: symbol
role_heading: Instance Method
path: "appkit/nstableview/highlightselection(incliprect:)"
---

# highlightSelection(inClipRect:)

Highlights the region of the table view in the specified rectangle.

## Declaration

```swift
func highlightSelection(inClipRect clipRect: NSRect)
```

## Parameters

- `clipRect`: The rectangle, in the table view view’s coordinate system.

## Discussion

Discussion This method is invoked before drawRow(_:clipRect:). NSCell-based table views can override this method to change the manner in which they highlight selections. note: This method should not be subclassed or overridden for a view-base table view. Instead, row drawing customization should be done by subclassing NSTableRowView.

## See Also

### Drawing

- [drawRow(_:clipRect:)](appkit/nstableview/drawrow(_:cliprect:).md)
- [drawGrid(inClipRect:)](appkit/nstableview/drawgrid(incliprect:).md)
- [drawBackground(inClipRect:)](appkit/nstableview/drawbackground(incliprect:).md)
