title: NSTableView scrolling does not work
body: <p>I have an issue with tableview scrolling. </p>
  
  <p>I have dragged a scrollview in to the xib with the frame. </p>
  
  <p>And I am creating a tableview programmatically and adding this to the scrollview as follows:</p>
  
  <pre><code>NSRect frame = [[ScrollView contentView] bounds];
  rTableView = [[MTableView alloc] initWithFrame:frame];
  </code></pre>
  
  <p><code>MTableView</code> is my custom class inheriting <code>NSTableView</code> and in the constructor, I am adding columns to the table view.</p>
  
  <pre><code>[ScrollView setDocumentView: resultsTableView];
  [ScrollView setHasVerticalScroller:YES];
  [ScrollView setHasHorizontalRuler:YES];
  
  [rTableView setDelegate:self];
  [rTableView setDataSource:self];
  [ScrollView addSubview: rTableView];
  
  [rTableView reloadData];
  </code></pre>
  
  <p>I have written the delegate functions to load the data and Table is being filled with the data. But the scroll does not work. I have 100 rows in the table and I am able to see the first 21 rows at the initial load of table view. And with the scroll nothing happens and the row index (that's in the data delegate) is always either 19 or 20. I am not sure what's going wrong here. I have seen some old posts in stackoverflow, followed the documentation of <code>NSTableView</code> but not of much help.</p>
  
  <p>Any help is much appreciated.</p>