title: How to create NSCollectionView programmatically from scratch?
body: <p><code>NSCollectionView</code> remains one of the most mysterious parts of the Cocoa API that I've ever seen.  Documentation is poor and there are many moving parts, many of which are often implemented in Interface Builder, making documentation challenging.</p>
  
  <p>Please provide sample code to create the simplest case of <code>NSCollectionView</code> which displays either Text Fields or Buttons without using Xcode where each Text Field or Button has a different Title.  Assume a new Xcode project with the default <code>window</code> IBOutlet.</p>
  
  <p>For this example, no binding is required to update the NSCollectionView as the data source changes.  Simply display a grid of prototype objects and set each object's Title to some value.</p>
  
  <p>If we can get a good example of how to do this available to many people, I think it will help everyone who works with <code>NSCollectionViews</code> and is as baffled as I am.</p>
  
  <p><strong>Summary of request</strong></p>
  
  <ul>
  <li>Provide sample code to render an NSCollectionView in a new Xcode project</li>
  <li>Do not use Interface Builder, do use the default window IBOutlet provided</li>
  <li>NSCollectionView should contain Text Fields or Buttons, your choice</li>
  <li>Each item in the view should have a different Title</li>
  <li>No binding is required</li>
  </ul>
  
  <p>If there's sample code out there that meets these requirements, please provide a link, that'd be great!</p>