hedgewars/SDLMain.m
branch0.9.14.1
changeset 4336 006133b13b32
parent 3697 d5b30d6373fc
equal deleted inserted replaced
4335:c279aeb615df 4336:006133b13b32
   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