README-SDL.txt
author Ozkan Sezer <sezeroz@gmail.com>
Fri, 22 Jun 2018 21:03:40 +0300
branchSDL-1.2
changeset 12026 67f391c74aee
parent 0 74212992fb08
child 5537 8a66741be632
permissions -rw-r--r--
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.
     1 
     2 Please distribute this file with the SDL runtime environment:
     3 
     4 The Simple DirectMedia Layer (SDL for short) is a cross-platfrom library
     5 designed to make it easy to write multi-media software, such as games and
     6 emulators.
     7 
     8 The Simple DirectMedia Layer library source code is available from:
     9 http://www.libsdl.org/
    10 
    11 This library is distributed under the terms of the GNU LGPL license:
    12 http://www.gnu.org/copyleft/lesser.html
    13