Provide wxLaunchDefaultBrowser implementation for wxCocoa.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45892 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
David Elliott
2007-05-08 19:37:06 +00:00
parent 59b28f2a14
commit 4263bab00e
2 changed files with 21 additions and 0 deletions

View File

@@ -678,6 +678,11 @@ wxRegisterId (long id)
// Launch default browser
// ----------------------------------------------------------------------------
#ifdef __WXCOCOA__
// Private method in Objective-C++ source file.
bool wxCocoaLaunchDefaultBrowser(const wxString& url, int flags);
#endif
bool wxLaunchDefaultBrowser(const wxString& urlOrig, int flags)
{
wxUnusedVar(flags);
@@ -778,6 +783,10 @@ bool wxLaunchDefaultBrowser(const wxString& urlOrig, int flags)
#endif // __WXDEBUG__
return true;
}
#elif defined(__WXCOCOA__)
// NOTE: We need to call the real implementation from src/cocoa/utils.mm
// because the code must use Objective-C features.
return wxCocoaLaunchDefaultBrowser(url, flags);
#elif defined(__WXMAC__)
OSStatus err;
ICInstance inst;