]> git.saurik.com Git - wxWidgets.git/blobdiff - src/osx/cocoa/evtloop.mm
Somehow, setting a tint color makes gauge work :/.
[wxWidgets.git] / src / osx / cocoa / evtloop.mm
index 089695d1d817b0974c261319a8bc4b0b853ff529..2a27139d35c1052661a0376bdcf8bdfc0dc08ef1 100644 (file)
@@ -242,26 +242,6 @@ int wxGUIEventLoop::DoDispatchTimeout(unsigned long timeout)
 
 static int gs_loopNestingLevel = 0;
 
-int wxGUIEventLoop::Run()
-{
-    // because we are using native callbacks for notifying about entering and exiting
-    // the main event loop, we must this leave out here
-    
-    // event loops are not recursive, you need to create another loop!
-    wxCHECK_MSG( !IsInsideRun(), -1, wxT("can't reenter a message loop") );
-    
-    // We might be called again, after a previous call to ScheduleExit(), so
-    // reset this flag.
-    m_shouldExit = false;
-    
-    // Set this variable to true for the duration of this method.
-    m_isInsideRun = true;
-    wxON_BLOCK_EXIT_SET(m_isInsideRun, false);
-    
-    // Finally really run the loop.
-    return DoRun();
-}
-
 void wxGUIEventLoop::OSXDoRun()
 {
     /*
@@ -360,8 +340,7 @@ void wxGUIEventLoop::OSXDoStop()
     // We should only stop the top level event loop.
     if ( gs_loopNestingLevel <= 1 )
     {
-        // using terminate support all native notifications
-        [NSApp terminate:0];
+        [NSApp stop:0];
     }
 
     // For the top level loop only calling stop: is not enough when called from
@@ -371,11 +350,6 @@ void wxGUIEventLoop::OSXDoStop()
     WakeUp();
 }
 
-void wxGUIEventLoop::OSXOnWillTerminate()
-{
-    OnExit();
-}
-
 void wxGUIEventLoop::WakeUp()
 {
     // NSEvent* cevent = [NSApp currentEvent];