Search code examples
cocoaxcode4nstableviewnscolor

NStableView selected row color (remove border of NSTableView on selection)


I am using NSTableView for display my data. I want to remove color of selected row which by default taking blue color. Can i set it to Clear color. Is it possible??

EDIT:

how can i remove this blue border?? I have set Clear color to table background.

enter image description here
Thanks in advance..!!! :)


Solution

  • [tableView setSelectionHighlightStyle:NSTableViewSelectionHighlightStyleNone];
    

    To remove the table's blue focus ring border, select the table in your .XIB and set Focus Ring to None