title: Open NSViewController from function. Menu Bar App
body: <p>I am trying to open a NSViewController from a function that starts when a NSMenuItem is pressed. </p>
  
  <pre><code>func settings (sender: NSStatusBarButton) {
  
      //open NSViewController here?
  
  }
  </code></pre>