title: How do you obtain a view from a nib within a playground?
body: <p>In a typical Xcode project, you can obtain a view from a nib like this: </p>
  
  <pre><code>    var objects: NSArray?;
      NSBundle.mainBundle().loadNibNamed("ExampleView", owner: nil,
                                         topLevelObjects: &amp;objects)
      var view :NSView
      for obj in objects! {
          if (obj.isMemberOfClass(NSView)) {
              view = obj as NSView
          }
      }
      // view is now the NSView object obtained from the nib. Yay.
  </code></pre>
  
  <p>However, if I create a playground within the same Xcode project and attempt to obtain the view, the above code fails. In fact, <code>loadNibNamed:owner:topLevelObjects:</code> returns false, and we know that loading the nib failed.</p>
  
  <p>Even if I create a standalone playground, and place the .xib file inside the Resources directory, <code>loadNibNamed:owner:topLevelObjects:</code> still returns false.</p>
  
  <p>Why can't I use <code>loadNibNamed:owner:topLevelObjects:</code> to access a nib file from within a playground? What is the correct way to do this?</p>