X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/518e56a71b339bb1a8f06e25321fd63dd0c849f9..7b4a652a8bf3da1b2dd20dd22c9e6db5dd03db59:/include/wx/cocoa/app.h diff --git a/include/wx/cocoa/app.h b/include/wx/cocoa/app.h index 7caed7e180..d0e7c78261 100644 --- a/include/wx/cocoa/app.h +++ b/include/wx/cocoa/app.h @@ -33,13 +33,14 @@ public: // ------------------------------------------------------------------------ public: inline WX_NSApplication GetNSApplication() { return m_cocoaApp; } - void CocoaInstallRequestedIdleHandler() { if(m_isIdle) CocoaInstallIdleHandler(); } - inline void CocoaRequestIdle() { m_isIdle = true; } + virtual void CocoaDelegate_applicationWillBecomeActive(); + virtual void CocoaDelegate_applicationDidBecomeActive(); + virtual void CocoaDelegate_applicationWillResignActive(); + virtual void CocoaDelegate_applicationDidResignActive(); protected: WX_NSApplication m_cocoaApp; + struct objc_object *m_cocoaAppDelegate; WX_NSThread m_cocoaMainThread; - void CocoaInstallIdleHandler(); - bool m_isIdle; // ------------------------------------------------------------------------ // Implementation @@ -49,7 +50,7 @@ public: virtual void Exit(); virtual bool Yield(bool onlyIfNeeded = FALSE); - virtual void WakeUpIdle() { CocoaRequestIdle(); } + virtual void WakeUpIdle(); virtual bool Initialize(int& argc, wxChar **argv); virtual void CleanUp();