title: setActivationPolicy to Regular and openWindow
body: <p>On <code>applicationDidFinishLaunching</code> application <code>activationPolicy</code> is set to <code>Prohibited</code> (to hide the dock icon).</p>
  
  <p>I have a method that sets it to <code>NSApplicationActivationPolicyRegular</code> (to be able to open and focus the window) then opens the window, but I have to run it twice to work. The set policy doesn't affect the <code>openWindow:</code> method.</p>
  
  <pre><code>- (void)openWindow {
      [NSApp activateIgnoringOtherApps:YES];
      [NSApp setActivationPolicy:NSApplicationActivationPolicyRegular];
      [NSApp openWindow:window];
  }
  </code></pre>
  
  <p>Do I need to delay the <code>openWindow:</code>?</p>