I have an NSTableView that has a very small fixed number of rows.
When I create an NSTableView in Interface Builder, the NSTableView is contained within an NSScrollView. I have not found a way to make the table exist outside the context of a scroll view. Since the table only has a small number of rows, I don't want it to scroll. I want the table to resize based on the number of rows, and I want the bottom border immediately under the bottom of the last row.
If I set the height of the scroll view as follows, I get a vertical scroll bar:
height = (numRows * (rowHeight + intercellSpacingHeight))
If I add one pixel to that height, I don't get the scroll bar but I get an extra pixel between the bottom of the last row and the bottom border.
If I uncheck the "Show Vertical Scroller" checkbox in Interface Builder, the scroll bar does not appear but the table scrolls down one pixel when I select the last row.
Is there a way to have the table not scroll at all, and have the bottom border immediately under the last row?
Thanks.