]> git.saurik.com Git - wxWidgets.git/commitdiff
Removed MainLoop, ExitMainLoop, Pending, and Dispatch
authorDavid Elliott <dfe@tgwbd.org>
Fri, 3 Oct 2003 13:15:56 +0000 (13:15 +0000)
committerDavid Elliott <dfe@tgwbd.org>
Fri, 3 Oct 2003 13:15:56 +0000 (13:15 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24065 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/cocoa/app.h
src/cocoa/app.mm

index 3dfca73c96f367fa5361bcedb95e08228c4c940e..7caed7e180a9dd1bb30412c0bd8d044347f69848 100644 (file)
@@ -46,11 +46,6 @@ protected:
 // ------------------------------------------------------------------------
 public:
     // Implement wxAppBase pure virtuals
-    virtual int MainLoop();
-    virtual void ExitMainLoop();
-    virtual bool Pending();
-    virtual bool Dispatch();
-
     virtual void Exit();
 
     virtual bool Yield(bool onlyIfNeeded = FALSE);
index c4fe8f3181f6feb97d94dcca160b520d03421842..4744ac03ecd0b895120be38945b3b38a0b0dad92 100644 (file)
@@ -237,39 +237,6 @@ void wxApp::Exit()
     wxAppConsole::Exit();
 }
 
-int wxApp::MainLoop()
-{
-    [m_cocoaApp run];
-    return 0;
-}
-
-void wxApp::ExitMainLoop()
-{
-    wxLogDebug("wxApp::ExitMailLoop m_isIdle=%d, isRunning=%d",(int)m_isIdle,(int)[m_cocoaApp isRunning]);
-//    CocoaInstallRequestedIdleHandler();
-//    if(m_isIdle)
-//        [[ NSRunLoop currentRunLoop ] performSelector:@selector(doIdle:) target:m_cocoaApp argument:NULL order:0 modes:[NSArray arrayWithObjects:NSDefaultRunLoopMode, /* NSConnectionReplyRunLoopMode, NSModalPanelRunLoopMode, NSEventTrackingRunLoopMode,*/ nil] ];
-// actually.. we WANT the idle event
-// or not
-#if 0
-    if(!m_isIdle)
-        [[ NSRunLoop currentRunLoop ] cancelPerformSelector:@selector(doIdle:) target:m_cocoaApp argument:NULL];
-#endif
-    [m_cocoaApp stop: m_cocoaApp];
-}
-
-// Is a message/event pending?
-bool wxApp::Pending()
-{
-    return 0;
-}
-
-// Dispatch a message.
-bool wxApp::Dispatch()
-{
-    return true;
-}
-
 // Yield to other processes
 bool wxApp::Yield(bool onlyIfNeeded)
 {