title: Can't create an NSBitmapImageRep in Swift
body: <p>I've got an osx xcode project created with xcode 6.1
  I wanted to use it to train using with SWIFT a little bit.</p>
  
  <p>In one of my views I tried creating an NSBitMapImageRep as seen here:</p>
  
  <pre><code>class BitmapView : NSView {
  var image: NSBitmapImageRep!
  
  override func awakeFromNib() {
      var blub = NSBitmapImageRep(bitmapDataPlanes: nil,
          pixelsWide: Int(self.frame.size.width),
          pixelsHigh: Int(self.frame.size.height),
          bitsPerSample: 8,
          samplesPerPixel: 1,
          hasAlpha: false,
          isPlanar: false,
          colorSpaceName: NSCalibratedRGBColorSpace,
          bytesPerRow: 0, bitsPerPixel: 0)!
  
      //test()
  }}
  </code></pre>
  
  <p>But every time I try running it, I get the following error:</p>
  
  <pre><code>Inconsistent set of values to create NSBitmapImageRep fatal error: unexpectedly found nil while unwrapping an Optional value
  </code></pre>
  
  <p>Which I guess is due to bitmapDataPlanes being nil. But it is an optional value and according to the documentation is allowed to be NULL. Passing NSNull() instead doesn't compile though.</p>
  
  <p>Can anybody tell me what I would have to pass instead? o_O</p>