X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/22ed9d11862757c0cffce9c3ddfa370d1fcef81b..2f30930a092c85f3255f8a0d79873cde438b0445:/src/osx/iphone/evtloop.mm?ds=sidebyside diff --git a/src/osx/iphone/evtloop.mm b/src/osx/iphone/evtloop.mm index 41b8235296..0477771765 100644 --- a/src/osx/iphone/evtloop.mm +++ b/src/osx/iphone/evtloop.mm @@ -97,12 +97,34 @@ void wxGUIEventLoop::DoRun() } } -wxModalEventLoop::wxModalEventLoop(wxWindow *winModal) +int wxGUIEventLoop::DoDispatchTimeout(unsigned long timeout) { - m_modalWindow = dynamic_cast (winModal); + return wxCFEventLoop::DoDispatchTimeout(timeout); +} + +void wxGUIEventLoop::DoStop() +{ + return wxCFEventLoop::DoStop(); +} +// TODO move into a evtloop_osx.cpp + +wxModalEventLoop::wxModalEventLoop(wxWindow *modalWindow) +{ + m_modalWindow = dynamic_cast (modalWindow); wxASSERT_MSG( m_modalWindow != NULL, "must pass in a toplevel window for modal event loop" ); + m_modalNativeWindow = m_modalWindow->GetWXWindow(); } +wxModalEventLoop::wxModalEventLoop(WXWindow modalNativeWindow) +{ + m_modalWindow = NULL; + wxASSERT_MSG( modalNativeWindow != NULL, "must pass in a toplevel window for modal event loop" ); + m_modalNativeWindow = modalNativeWindow; +} + +// END move into a evtloop_osx.cpp + + void wxModalEventLoop::DoRun() { // presentModalViewController:animated: