Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Change separator color to background or remove it from NSTableView

I am looking to remove the separator color in View based NSTableView.

It looks like this :

enter image description here

For UITableView there is a method setSeparatorColor: but not for NSTableView.

Solutions will be highly appreciated.

like image 474
Anoop Vaidya Avatar asked May 06 '13 09:05

Anoop Vaidya


2 Answers

Maybe I could mention that in view based tables NSTableRowView is responsible for drawing the seperators. So in the inspector for the table you set it the grid to "None" and implement drawSeparatorInRect: in your NSTableRowView subclass, which in your case would mean leaving it empty.

like image 167
aLevelOfIndirection Avatar answered Sep 28 '22 00:09

aLevelOfIndirection


Answer for Interface Builder :

enter image description here

like image 20
Vladimir Avatar answered Sep 28 '22 00:09

Vladimir