author Ozkan Sezer <>
Fri, 22 Jun 2018 21:03:40 +0300
changeset 12026 67f391c74aee
parent 1840 c6a447c98584
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)
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 <!DOCTYPE HTML PUBLIC "-//Norman Walsh//DTD DocBook HTML 1.0//EN">
     2 <HTML>
     3 <HEAD><TITLE>Simple DirectMedia Layer Introduction</TITLE></HEAD>
     4 <BODY BGCOLOR="#FFF8DC" TEXT="#000000" LINK="#0000ee" VLINK="#551a8b" ALINK="#ff0000">
     6 <HR ALIGN="LEFT" WIDTH="100%">
     7 </DIV>
     9 <H2><A NAME="AEN8">Simple DirectMedia Layer Introduction</A></H2>
    10 <P>
    11 This library is designed to make it easy to write games that run on many
    12 different platforms using the various native high-performance media interfaces,
    13 (for video, audio, etc) and presenting a single source-code level API to
    14 your application.  This is a fairly low level API, but using this, completely
    15 portable applications can be written with a great deal of flexibility.
    16 </P><P>
    17 An introduction to SDL can be found online at:
    18 <A HREF="" TARGET="_top">
    20 </P><P>
    21 Tutorials on a variety of topics can be found online at:
    22 <A HREF="" TARGET="_top">
    24 </P><P>
    25 Documentation in Wiki form can be found online at:
    26 <A HREF="" TARGET="_top">
    28 </P><P>
    29 Enjoy!
    30 </P><P>
    31 &nbsp;&nbsp;&nbsp; Sam Lantinga
    32 <TT CLASS="EMAIL">&#60;<A HREF=""><A HREF="" TARGET="_top" ></A></A>&#62;</TT>
    33 </P> <P>
    34 <br><br><HR>
    35 <H1>Table of Contents</H1>
    36 <UL>
    37 <LI><A HREF="html/index.html">Full Table of Contents</A></LI>
    38 <LI><A HREF="html/guide.html">The SDL Guide</A></LI>
    39 <LI><A HREF="html/reference.html">The SDL Reference</A></LI>
    40 <UL>
    41 <LI><A HREF="html/general.html">Initialization</A></LI>
    42 <LI><A HREF="html/video.html">Video</A></LI>
    43 <LI><A HREF="html/wm.html">Window Manager</A></LI>
    44 <LI><A HREF="html/event.html">Event Handling</A></LI>
    45 <LI><A HREF="html/joystick.html">Joystick</A></LI>
    46 <LI><A HREF="html/audio.html">Audio</A></LI>
    47 <LI><A HREF="html/cdrom.html">CDROM</A></LI>
    48 <LI><A HREF="html/thread.html">Threads</A></LI>
    49 <LI><A HREF="html/time.html">Timers</A></LI>
    50 </UL>
    51 </UL>
    52 </DIV
    53 ></BODY
    54 ></HTML
    55 >