title: Is it possible to create a view-based NSTableView purely in code?
body: <p>I have successfully created a cell-based NSTableView purely in code. I would like to make the cells a little more interesting and I have read that I need to create a view-based NSTableView.</p>
  
  <p>I have been tutorials like <a href="http://nscurious.com/2015/04/08/using-view-based-nstableview-with-swift/" rel="noreferrer">this</a>.</p>
  
  <p>The rest of my UI is entirely in code. I have been trying to do the same for this tableview without much luck.</p>
  
  <p>Here is how I am defining the TableView — I need to stop registering the Nib and I am not sure how:</p>
  
  <pre><code>     let nib = NSNib(nibNamed: "TransactionCellView", bundle: NSBundle.mainBundle())
          tableOfTransactions.registerNib(nib!, forIdentifier: "TransactionCellView")
  
          tableOfTransactions.headerView = nil
  
          tableOfTransactions.setDelegate(self)
          tableOfTransactions.setDataSource(self)
          tableOfTransactions.reloadData()
  </code></pre>
  
  <p>Here is my <strong>stub code</strong> for each cell:</p>
  
  <pre><code>func tableView(tableView: NSTableView, viewForTableColumn tableColumn: NSTableColumn?, row: Int) -&gt; NSView?{
          var testCell = NSView()
          testCell.frame = NSRect(x: 0, y: 0, width: 300, height: 200)
          return testCell
  }
  </code></pre>
  
  <p>Any pointers or suggestions on how to achieve this would be much appreciated!</p>