title: Change image for NSButton with Swift code
body: <p>I am running Xcode 7.2.1 and I am using storyboards. I added an "Image Button" to my storyboard and set the image in the attributes inspector. I then created an outlet and action for the button in my code.</p>
  
  <p>When I press the button I want its image to change. In Swift for iOS I would do this:</p>
  
  <pre><code>myButtonOutlet.setImage(UIImage(named: "Pressed-Button-Graphic@2x.png"), forState: UIControlState.Normal)
  </code></pre>
  
  <p>I tried this for OS X Swift:</p>
  
  <pre><code>myButtonOutlet.image(NSImage(named: "Pressed-Button-Graphic@2x.png"))
  </code></pre>
  
  <p>How can I change the image of my button from Swift (OS X)?</p>