mirror of
https://github.com/SFML/SFML.git
synced 2024-11-28 14:21:04 +08:00
Replaced deprecated functions on OS X 10.9
This commit is contained in:
parent
b9f5f19f7c
commit
e33e061e96
@ -207,13 +207,12 @@ void WindowImplCocoa::setUpProcess(void)
|
||||
// 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);
|
||||
SetFrontProcess(&psn);
|
||||
}
|
||||
// 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])
|
||||
|
Loading…
Reference in New Issue
Block a user