|
|
|
@ -203,6 +203,7 @@ bool CocoaSetupApplication()
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* Become the front process, important when start from the command line. */
|
|
|
|
|
[ [ NSApplication sharedApplication ] setActivationPolicy:NSApplicationActivationPolicyRegular ];
|
|
|
|
|
[ [ NSApplication sharedApplication ] activateIgnoringOtherApps:YES ];
|
|
|
|
|
|
|
|
|
|
/* Set up the menubar */
|
|
|
|
@ -247,6 +248,7 @@ void CocoaDialog(const char *title, const char *message, const char *buttonLabel
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@autoreleasepool {
|
|
|
|
|
NSAlert *alert = [ [ NSAlert alloc ] init ];
|
|
|
|
|
[ alert setAlertStyle: NSCriticalAlertStyle ];
|
|
|
|
|
[ alert setMessageText:[ NSString stringWithUTF8String:title ] ];
|
|
|
|
@ -254,8 +256,9 @@ void CocoaDialog(const char *title, const char *message, const char *buttonLabel
|
|
|
|
|
[ alert addButtonWithTitle: [ NSString stringWithUTF8String:buttonLabel ] ];
|
|
|
|
|
[ alert runModal ];
|
|
|
|
|
[ alert release ];
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (!wasstarted && VideoDriver::GetInstance() != NULL) VideoDriver::GetInstance()->Stop();
|
|
|
|
|
if (!wasstarted && VideoDriver::GetInstance() != nullptr) VideoDriver::GetInstance()->Stop();
|
|
|
|
|
|
|
|
|
|
_cocoa_video_dialog = false;
|
|
|
|
|
}
|
|
|
|
|