src/video/cocoa/SDL_cocoamessagebox.m
changeset 6639 c7e81fae23c4
parent 6626 4aa5af31f2f9
child 6714 146d1d7ecdc4
equal deleted inserted replaced
6638:3d221da309d3 6639:c7e81fae23c4
    35 
    35 
    36 /* Display a Cocoa message box */
    36 /* Display a Cocoa message box */
    37 int
    37 int
    38 Cocoa_ShowMessageBox(const SDL_MessageBoxData *messageboxdata, int *buttonid)
    38 Cocoa_ShowMessageBox(const SDL_MessageBoxData *messageboxdata, int *buttonid)
    39 {
    39 {
       
    40     Cocoa_RegisterApp();
       
    41 
    40     NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
    42     NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
    41 
    43 
    42     NSAlert* alert = [[NSAlert alloc] init];
    44     NSAlert* alert = [[NSAlert alloc] init];
    43 
    45 
    44     if (messageboxdata->flags & SDL_MESSAGEBOX_ERROR) {
    46     if (messageboxdata->flags & SDL_MESSAGEBOX_ERROR) {