]> git.saurik.com Git - wxWidgets.git/commitdiff
Implement a hack so the correct wxGUIEventLoop class will be used.
authorDavid Elliott <dfe@tgwbd.org>
Fri, 18 May 2007 23:02:55 +0000 (23:02 +0000)
committerDavid Elliott <dfe@tgwbd.org>
Fri, 18 May 2007 23:02:55 +0000 (23:02 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46120 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/cocoa/utils.mm

index ea89c852cc8e837444e8d51e0dd400240212975c..c6958cfa437cadb4a85d26cc08c39fa532b62668 100644 (file)
@@ -75,7 +75,10 @@ wxTimerImpl* wxGUIAppTraits::CreateTimerImpl(wxTimer* timer)
 
 wxEventLoop* wxGUIAppTraits::CreateEventLoop()
 {
-       return new wxEventLoop;
+    // 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);
 }
 
 wxWindow* wxFindWindowAtPoint(const wxPoint& pt)