X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/4263bab00e05dfe9af724d9b5695826976aec08c..732d8c74f805e35cd398711fcd3969c4c668e259:/src/cocoa/utils.mm diff --git a/src/cocoa/utils.mm b/src/cocoa/utils.mm index f4acf49cb8..07deb46960 100644 --- a/src/cocoa/utils.mm +++ b/src/cocoa/utils.mm @@ -18,6 +18,7 @@ #include "wx/apptrait.h" #include "wx/display.h" +#include "wx/evtloop.h" #include "wx/cocoa/private/timer.h" #include @@ -72,6 +73,11 @@ wxTimerImpl* wxGUIAppTraits::CreateTimerImpl(wxTimer* timer) return new wxCocoaTimerImpl(timer); } +wxEventLoopBase* wxGUIAppTraits::CreateEventLoop() +{ + return new wxGUIEventLoop; +} + wxWindow* wxFindWindowAtPoint(const wxPoint& pt) { return wxGenericFindWindowAtPoint(pt); @@ -103,7 +109,7 @@ void wxBell() } // Private helper method for wxLaunchDefaultBrowser -bool wxCocoaLaunchDefaultBrowser(const wxString& url, int flags) +bool wxDoLaunchDefaultBrowser(const wxString& url, int flags) { // NOTE: We ignore the flags return [[NSWorkspace sharedWorkspace] openURL: [NSURL URLWithString:wxNSStringWithWxString(url)]] != NO;