On WDL (Tale and Ol) the function for Mac is
Code:
bool IGraphicsMac::OpenURL(const char* url, const char* msgWindowTitle, const char* confirmMsg, const char* errMsgOnFailure)
{
#pragma REMINDER("Warning and error messages for OpenURL not implemented")
NSURL* pURL = 0;
if (strstr(url, "http"))
{
pURL = [NSURL URLWithString:ToNSString(url)];
}
else
{
pURL = [NSURL fileURLWithPath:ToNSString(url)];
}
if (pURL)
{
bool ok = ([[NSWorkspace sharedWorkspace] openURL:pURL]);
// [pURL release];
return ok;
}
return true;
}