NSTableView custom highlight color with NSTableRowView

Getting the right color when you select NSTableView’s row was frustrating for me since I didn’t know how to do it properly. But it is really simple, all you need to do is having a class inherit from NSTableRowView and override its method drawSelection(in dirtyRect: NSRect). Change menu_table_selection_color value in Assets.xcassets file. Now go to …

Spread the love
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •