INSTALL
author Ozkan Sezer <sezeroz@gmail.com>
Fri, 22 Jun 2018 21:03:40 +0300
branchSDL-1.2
changeset 12026 67f391c74aee
parent 866 0a45995a7fc3
child 3561 00e7c6b7eb03
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 To compile and install SDL:
     3 
     4     1.  Run './configure; make; make install'
     5 
     6         If you are compiling for Windows using gcc, read the FAQ at:
     7         http://www.libsdl.org/faq.php?action=listentries&category=4#42
     8 
     9         If you are compiling using Visual C++ on Win32, you should read
    10         the file VisualC.html
    11 
    12     2.  Look at the example programs in ./test, and check out the HTML
    13         documentation in ./docs to see how to use the SDL library.
    14 
    15     3.  Join the SDL developer mailing list by sending E-mail to
    16     	sdl-request@libsdl.org
    17         and put "subscribe" in the subject of the message.
    18 
    19         Or alternatively you can use the web interface:
    20             http://www.libsdl.org/mailing-list.php
    21 
    22 That's it!
    23 Sam Lantinga <slouken@libsdl.org>