Reform scenario editor menu -> command mapping so that the non-platform-dependent code doesn't need to know where the menuitem is
This commit is contained in:
@@ -145,6 +145,10 @@ void beep() {
|
||||
NSBeep();
|
||||
}
|
||||
|
||||
void launchURL(std::string url) {
|
||||
[[NSWorkspace sharedWorkspace] openURL:[NSURL URLWithString:[NSString stringWithCString:url.c_str() encoding:NSUTF8StringEncoding]]];
|
||||
}
|
||||
|
||||
int getMenubarHeight() {
|
||||
// Mac menubar isn't in the window, so we return 0 here.
|
||||
return 0;
|
||||
|
Reference in New Issue
Block a user