New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OS X impl update #601

merged 10 commits into from May 23, 2014

Replaced deprecated functions on OS X 10.9

  • Loading branch information...
mantognini committed May 17, 2014
commit e33e061e963601911aa80afe6279fde9cfb89eb9
@@ -207,13 +207,12 @@ void scaleOutXY(T& out)
// Do it only once !
isTheProcessSetAsApplication = true;
// Set the process as a normal application so it can get focus.
ProcessSerialNumber psn;
if (!GetCurrentProcess(&psn))
TransformProcessType(&psn, kProcessTransformToForegroundApplication);
// Make sure NSApp is properly initialized
[SFApplication sharedApplication];
// Set the process as a normal application so it can get focus
[NSApp setActivationPolicy:NSApplicationActivationPolicyRegular];
[NSApp activateIgnoringOtherApps:YES];
// Register an application delegate if there is none
if (![[SFApplication sharedApplication] delegate])
ProTip! Use n and p to navigate between commits in a pull request.