X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/4263bab00e05dfe9af724d9b5695826976aec08c..88932ec82d048d006cdc81bd309f5e59aee799ac:/src/cocoa/utils.mm diff --git a/src/cocoa/utils.mm b/src/cocoa/utils.mm index f4acf49cb8..bc764949b5 100644 --- a/src/cocoa/utils.mm +++ b/src/cocoa/utils.mm @@ -1,5 +1,5 @@ ///////////////////////////////////////////////////////////////////////////// -// Name: src/cocoa/utils.cpp +// Name: src/cocoa/utils.mm // Purpose: Various utilities // Author: David Elliott // Created: 2003/??/?? @@ -18,6 +18,7 @@ #include "wx/apptrait.h" #include "wx/display.h" +#include "wx/evtloop.h" #include "wx/cocoa/private/timer.h" #include <ctype.h> @@ -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;