Created
January 31, 2013 13:03
-
-
Save johannesl/4682698 to your computer and use it in GitHub Desktop.
How to force your window to front in Cocoa / OSX.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
NSApplication *myApp = [NSApplication sharedApplication]; | |
[myApp activateIgnoringOtherApps:YES]; | |
[self.window orderFrontRegardless]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment