5

NSTableView with attached NSMenu.

Upon right clicking on the table view, the menu will appear. With it, the table view will highlight the row with a colored border.

Using the HoverTableDemo from the Mac Developer Library as a reference point.

The default color corresponds to the user preference from System Preference -> General -> Highlight color.

Q: How can this border color be changed/removed?

enter image description here

Community
  • 1
  • 1
Zelko
  • 3,793
  • 3
  • 34
  • 40
  • https://stackoverflow.com/questions/9619664/customize-right-click-highlight-on-view-based-nstableview/53315864#53315864 – MCMatan Nov 15 '18 at 09:16

1 Answers1

5

Add this to your TableView

- (void)drawContextMenuHighlightForRow:(NSInteger)row;
{

}
Stefanf
  • 1,663
  • 13
  • 15