equal
deleted
inserted
replaced
214 [SDLApplication sharedApplication]; |
214 [SDLApplication sharedApplication]; |
215 } |
215 } |
216 #endif /* SDL_USE_CPS */ |
216 #endif /* SDL_USE_CPS */ |
217 |
217 |
218 /* Set up the menubar */ |
218 /* Set up the menubar */ |
219 [NSApp setMainMenu:[[NSMenu alloc] init]]; |
219 NSMenu *menu = [[NSMenu alloc] init]; |
|
220 [NSApp setMainMenu:menu]; |
220 setApplicationMenu(); |
221 setApplicationMenu(); |
221 setupWindowMenu(); |
222 setupWindowMenu(); |
|
223 [menu release]; |
222 |
224 |
223 /* Create SDLMain and make it the app delegate */ |
225 /* Create SDLMain and make it the app delegate */ |
224 sdlMain = [[SDLMain alloc] init]; |
226 sdlMain = [[SDLMain alloc] init]; |
225 [NSApp setDelegate:sdlMain]; |
227 [NSApp setDelegate:sdlMain]; |
226 |
228 |