For my first Mac app, I'm trying to make a simple window with just a table view. I enabled Headers but it adds an annoying line on top of my NSTableHeaderView
:
I can't seem to find a property to remove it. I know it can be removed, because the Finder doesn't have it:
When I disable Headers, the border is not there. I should also note that the NSTableView
is located inside an NSSplitView
. Any ideas?
The problem exists because both the window frame and the table view's scroll view have a 1px border. Depending on your layout you can either set the
borderStyle
of theNSScrollView
that encloses yourNSTableView
toNSNoBorder
(note that this will remove the 1px border from all sides of the scroll view). Or you can move the scroll view up by 1px.