title: How to properly set up NSPopover with separate viewController
body: <p>I have created an extremely simple test program. It has one button. Clicking the button brings up an <code>NSPopover</code> with a label. That label is on a separate xib file with its own <code>NSViewController</code>. </p>
  
  <p>The Goal is to, when on the main screen, when I click the button, a popover will show the xib file of the <code>viewcontroller</code>. And the label of the xib file should have it's text set to "It works".</p>
  
  <p>Well.. It works, but only on <strong>after</strong> the second loading of the popover. On the first click of the button, the label still has its old default value. But from the 2nd click and onwards, "It works".  <strong>Does any one have an idea what can be causing this issue? Its only about 5 lines of code</strong> The code can be seen on this repository --> <a href="https://github.com/patchthecode/testtest" rel="nofollow">https://github.com/patchthecode/testtest</a></p>