title: How do you use a Cocoa slider control in SWIFT with OSX
body: <p>I create an IBAction using Interface Builder </p>
  
  <pre><code>  @IBAction func slider(sender : NSSlider) {
      var x:Double = Double(self.slider.value())
  
  }
  </code></pre>
  
  <p>Now I would like to fetch and work with its current value. Does anyone have good suggestions for learning Cocoa development using SWIFT on OSX? In tutorials, I see references to UISlider and UIButton but Interface Builder creates references in code to NSButton and NSSlider. I'm confused. Thank you in advance.</p>