Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Disable highlight color NSTableview - Apple Development

I am developing an application in cocoa which needs to select an item by clicking a check box inside a NSTableview.I need to select the cell without highlighting the row of table view Is it possible to do this... Thanks in advance

like image 409
MobX Avatar asked Nov 29 '22 20:11

MobX


1 Answers

NSTableView has a method called setSelectionHighlightStyle: to which you can send NSTableViewSelectionHighlightStyleNone as an option and it will not show a highlight.

So, in awakeFromNib: or similar:

[tableView setSelectionHighlightStyle:NSTableViewSelectionHighlightStyleNone];

like image 168
catsby Avatar answered Feb 03 '23 08:02

catsby