Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

NSTableView get rid blank space separating columns

I have an NSTableView with 4 columns. I also have a custom background color for each row. The only problem is I have these ugly white spaces where the gridlines would go in both the horizontal and vertical axis. I have both unchecked in IB, but they still show up. How can I get rid of the vertical ones and change the color and size of the horizontal ones?

Here's what I see: alt text http://img815.imageshack.us/img815/9030/homex.png

like image 735
Matt S. Avatar asked Jun 13 '10 15:06

Matt S.


1 Answers

To get rid of vertical spaces but keep the horizontal ones:

[yourTableView setIntercellSpacing:NSMakeSize(0.0, 2.0)];

See Apple documentation for more details.

like image 57
Thomas Avatar answered Jan 03 '23 00:01

Thomas