ModeObserverCallBack(CFRunLoopObserverRef observer, int activity, void *info) {     wxCFEventLoop * eventloop = static_cast<wxCFEventLoop *>(info);     if ( eventloop && eventloop->IsRunning() )         eventloop->