Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
SDLMain.m: replace CPS* stuff with activateIgnoringOtherApps (bug #4114)
CPS stuff are deprecated and emit warnings at runtime, e.g.: warning: CPSGetCurrentProcess(): This call is deprecated and should not be called anymore warning: CPSSetForegroundOperationState() (as above) warning: capture_display; Captured mirror master 0x350000c1 (unit 1) on behalf of slave 0x042716c0 (unit 0) http://lists.libsdl.org/pipermail/sdl-libsdl.org/2006-April/055749.html suggests doing something like: ProcessSerialNumber psn = { 0, kCurrentProcess}; TransformProcessType (&psn, kProcessTransformToForegroundApplication); SetFrontProcess (&psn); And SetFrontProcess() is deprecated in 10.9. Processes.h suggests [[NSApplication sharedApplication] activateIgnoringOtherApps: YES] to make one's own application frontmost.
- Loading branch information