NSTableview There is a method for selecting HighlightStyle selection
Add the line below to your tableivew method:
func tableView(_ tableView: NSTableView, viewFor tableColumn: NSTableColumn?, row: Int) -> NSView? { let cell:customCell = tableView.make(withIdentifier: "customCell", owner: self) as! customCell tableview.selectionHighlightStyle = .none }
source share