Fixed building on Mac OS X SDL-1.2
authorSam Lantinga <slouken@libsdl.org>
Thu, 15 Oct 2009 05:18:48 +0000
branchSDL-1.2
changeset 4338 d78e4e0bf553
parent 4337 4eb6b4be1dbc
child 4339 819270e2f893
Fixed building on Mac OS X
src/main/macosx/SDLMain.m
--- a/src/main/macosx/SDLMain.m	Thu Oct 15 02:52:11 2009 +0000
+++ b/src/main/macosx/SDLMain.m	Thu Oct 15 05:18:48 2009 +0000
@@ -201,7 +201,7 @@
     SDLMain				*sdlMain;
 
     /* Ensure the application object is initialised */
-    [SDLApplication sharedApplication];
+    [NSApplication sharedApplication];
     
 #ifdef SDL_USE_CPS
     {
@@ -210,7 +210,7 @@
         if (!CPSGetCurrentProcess(&PSN))
             if (!CPSEnableForegroundOperation(&PSN,0x03,0x3C,0x2C,0x1103))
                 if (!CPSSetFrontProcess(&PSN))
-                    [SDLApplication sharedApplication];
+                    [NSApplication sharedApplication];
     }
 #endif /* SDL_USE_CPS */