title: OSX Swift - Show modal second window
body: <p>I am trying to display a second window after a button click:</p>
  
  <pre><code>var winJ:WinJo // other window NSViewController
  
  @IBAction func BtnNewWin(sender: AnyObject) {
      winJ = WinJo()
      winJ.showWindow(self)
  }
  </code></pre>
  
  <p>This works fine but I want the new window to be modal. I accomplished this with the Xcode designer but I couldn't figure out how to do this in code.</p>