I\'m using this code to bring up my window:
[self.window makeKeyAndOrderFront:self]; [self.window setOrderedIndex:0];
But often it will be
The syntax seems to be a little different with Swift 2:
NSApplication.sharedApplication().activateIgnoringOtherApps(true)