]> git.saurik.com Git - wxWidgets.git/blobdiff - src/cocoa/utils.mm
Fix wrong references to wxImageList description in XRC format docs.
[wxWidgets.git] / src / cocoa / utils.mm
index c6958cfa437cadb4a85d26cc08c39fa532b62668..1388b29c1e7ef26651a06b8de3dba845b2b71e84 100644 (file)
@@ -1,9 +1,8 @@
 /////////////////////////////////////////////////////////////////////////////
-// Name:        src/cocoa/utils.cpp
+// Name:        src/cocoa/utils.mm
 // Purpose:     Various utilities
 // Author:      David Elliott
 // Created:     2003/??/??
-// RCS-ID:      $Id$
 // Copyright:   (c) wxWidgets dev team
 // Licence:     wxWindows licence
 /////////////////////////////////////////////////////////////////////////////
@@ -73,12 +72,9 @@ wxTimerImpl* wxGUIAppTraits::CreateTimerImpl(wxTimer* timer)
     return new wxCocoaTimerImpl(timer);
 }
 
-wxEventLoop* wxGUIAppTraits::CreateEventLoop()
+wxEventLoopBase* wxGUIAppTraits::CreateEventLoop()
 {
-    // MAJOR HACK: wxEventLoop is implemented in both core and base libraries.
-    // Fortunately, it has an empty implementation so an instance of the
-    // wxGUIEventLoop parent class will be fine until this issue is fixed.
-    return static_cast<wxEventLoop*>(new wxGUIEventLoop);
+    return new wxGUIEventLoop;
 }
 
 wxWindow* wxFindWindowAtPoint(const wxPoint& pt)
@@ -112,7 +108,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;