(svn r23490) -Add [FS#2750]: OpenBrowser function to open a browser on major OSes

This commit is contained in:
yexo
2011-12-11 11:47:08 +00:00
parent 00355b2e68
commit f18be8a266
4 changed files with 34 additions and 0 deletions

View File

@@ -118,6 +118,10 @@ void ShowOSErrorBox(const char *buf, bool system)
}
}
void OSOpenBrowser(const char *url)
{
[ [ NSWorkspace sharedWorkspace ] openURL:[ NSURL URLWithString:[ NSString stringWithUTF8String:url ] ] ];
}
/**
* Determine and return the current user's locale.