title: Undeclared Type 'NSView' in Playground
body: <p>For an OSX Playground I enter the following code:</p>
  
  <pre><code>import Cocoa
  
  class PlayView : NSView {
  
      override func drawRect(dirtyRect: NSRect) {
  
          let blue = NSColor.blueColor()
  
          blue.setFill()
          NSRectFill(self.bounds)
  
      }
  }
  
  
  var view = PlayView(frame: NSRect(x: 0, y: 0, width: 200, height: 200))
  </code></pre>
  
  <p>I then get this output:</p>
  
  <pre><code>Playground execution failed: &lt;EXPR&gt;:12:18: error: use of undeclared type 'NSView'
  class PlayView : NSView {
                   ^~~~~~
  &lt;EXPR&gt;:14:39: error: use of undeclared type 'NSRect'
      override func drawRect(dirtyRect: NSRect) {
                                        ^~~~~~
  &lt;EXPR&gt;:25:28: error: use of unresolved identifier 'NSRect'
  var view = PlayView(frame: NSRect(x: 0, y: 0, width: 200, height: 200))
                             ^
  &lt;EXPR&gt;:16:20: error: use of unresolved identifier 'NSColor'
          let blue = NSColor.blueColor()
                     ^
  &lt;EXPR&gt;:19:9: error: use of unresolved identifier 'NSRectFill'
          NSRectFill(self.bounds)
          ^
  </code></pre>
  
  <p>This code was working before a big Playground crash but now it completely dies as if none of the Cocoa classes are being imported but I've imported Cocoa and made sure the playground is set for OSX.</p>
  
  <p>I also can create an iOS equivalent in an iOS configured playground and it works fine but the OSX version is broken.</p>
  
  <p>Any ideas?</p>
  
  <p><img src="https://i.stack.imgur.com/plCr8.png" alt="Playground Screen Capture"></p>