title: Fixed Height NSTableView, Avoid Scrolling
body: <p>I have an <code>NSTableView</code> that has a very small fixed number of rows.</p>
  
  <p>When I create an <code>NSTableView</code> in Interface Builder, the <code>NSTableView</code> is contained within an <code>NSScrollView</code>.  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.  </p>
  
  <p>If I set the height of the scroll view as follows, I get a vertical scroll bar:</p>
  
  <pre><code>height = (numRows * (rowHeight + intercellSpacingHeight))
  </code></pre>
  
  <p>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.</p>
  
  <p>If I uncheck the <strong>"Show Vertical Scroller"</strong> checkbox in Interface Builder, the scroll bar does not appear but the table scrolls down one pixel when I select the last row.</p>
  
  <p>Is there a way to have the table not scroll at all, and have the bottom border immediately under the last row?</p>
  
  <p>Thanks.</p>