#include "wx/wxprec.h"
+#include "wx/evtloop.h"
+
#ifndef WX_PRECOMP
#include "wx/log.h"
#include "wx/app.h"
#endif //WX_PRECOMP
-#include "wx/evtloop.h"
-
#import <AppKit/NSApplication.h>
#import <AppKit/NSEvent.h>
#import <Foundation/NSRunLoop.h>
the main thread waits and then notify the main thread by posting
an event.
*/
- ProcessPendingEvents();
+ if (wxTheApp)
+ wxTheApp->ProcessPendingEvents();
#if wxUSE_LOG
// let the logs be flashed again