title: Unable to set the image property of a NSImageView in swift
body: <p>I'm trying to set a image to an NSImageView but unable to do it.
  Here is my code</p>
  
  <pre><code>class zoomableImageView: NSImageView {
  var newZoomFactor : CGFloat = 0 
  // some function ...
  }
  </code></pre>
  
  <p>in the appDelegate class</p>
  
  <pre><code>@IBOutlet var imageView: zoomableImageView!
     func applicationDidFinishLaunching(aNotification: NSNotification) {
      self.imageView.image = NSImage(named: "Carte.jpg")!
  </code></pre>
  
  <p>Here is my debug</p>
  
  <pre><code>(lldb) po self.imageView
  &lt;imageZoom.zoomableImageView: 0x600000180750&gt;
  </code></pre>
  
  <p>the imageView is initialized</p>
  
  <pre><code>(lldb) po NSImage(named: "Carte.jpg")
  ▿ Optional(&lt;NSImage 0x600000065b80 Name=Carte Size={376.74418604651163, 282.49833887043189} Reps=("NSBitmapImageRep 0x6000000a6600 Size={376.74418604651163, 282.49833887043189} ColorSpace=(not yet loaded) BPS=8 BPP=(not yet loaded) Pixels=1575x1181 Alpha=NO Planar=NO Format=(not yet loaded) CurrentBacking=nil (faulting) CGImageSource=0x600000162400")&gt;)
  </code></pre>
  
  <p>the NSImage is created</p>
  
  <p>but </p>
  
  <pre><code>(lldb) po self.imageView.image
  nil
  </code></pre>
  
  <p>The assign is not working</p>
  
  <p>Does some one have any idea ?
  Tks for looking
  Guillaume</p>