comparison src/main/macosx/SDLMain.m @ 4338:d78e4e0bf553 SDL-1.2

Fixed building on Mac OS X
author Sam Lantinga <slouken@libsdl.org>
date Thu, 15 Oct 2009 05:18:48 +0000
parents 1496aa09e41e
children
comparison
equal deleted inserted replaced
4337:4eb6b4be1dbc 4338:d78e4e0bf553
199 { 199 {
200 NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init]; 200 NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
201 SDLMain *sdlMain; 201 SDLMain *sdlMain;
202 202
203 /* Ensure the application object is initialised */ 203 /* Ensure the application object is initialised */
204 [SDLApplication sharedApplication]; 204 [NSApplication sharedApplication];
205 205
206 #ifdef SDL_USE_CPS 206 #ifdef SDL_USE_CPS
207 { 207 {
208 CPSProcessSerNum PSN; 208 CPSProcessSerNum PSN;
209 /* Tell the dock about us */ 209 /* Tell the dock about us */
210 if (!CPSGetCurrentProcess(&PSN)) 210 if (!CPSGetCurrentProcess(&PSN))
211 if (!CPSEnableForegroundOperation(&PSN,0x03,0x3C,0x2C,0x1103)) 211 if (!CPSEnableForegroundOperation(&PSN,0x03,0x3C,0x2C,0x1103))
212 if (!CPSSetFrontProcess(&PSN)) 212 if (!CPSSetFrontProcess(&PSN))
213 [SDLApplication sharedApplication]; 213 [NSApplication sharedApplication];
214 } 214 }
215 #endif /* SDL_USE_CPS */ 215 #endif /* SDL_USE_CPS */
216 216
217 /* Set up the menubar */ 217 /* Set up the menubar */
218 [NSApp setMainMenu:[[NSMenu alloc] init]]; 218 [NSApp setMainMenu:[[NSMenu alloc] init]];