<!--
{
  "availability" : [
    "macOS: 10.5.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSTableView/selectionHighlightStyle-swift.property",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(cs)NSTableView(py)selectionHighlightStyle"
  },
  "title" : "selectionHighlightStyle"
}
-->

# selectionHighlightStyle

The selection highlight style used by the table view to indicate row and column selection.

```
var selectionHighlightStyle: NSTableView.SelectionHighlightStyle { get set }
```

## Discussion

Setting the selection highlight style to [`NSTableView.SelectionHighlightStyle.sourceList`](/documentation/AppKit/NSTableView/SelectionHighlightStyle-swift.enum/sourceList) causes the table view to draw its background using the source list style. It also sets the [`draggingDestinationFeedbackStyle`](/documentation/AppKit/NSTableView/draggingDestinationFeedbackStyle-swift.property) to [`NSTableView.DraggingDestinationFeedbackStyle.sourceList`](/documentation/AppKit/NSTableView/DraggingDestinationFeedbackStyle-swift.enum/sourceList).

---

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)