nsWatchTask::GetTask().EventLoopReached();
static pascal void FileDialogEventHandlerProc( NavEventCallbackMessage msg, NavCBRecPtr cbRec, NavCallBackUserData data ){	switch ( msg ) {	case kNavCBEvent:		switch ( cbRec->eventData.eventDataParms.event->what ) {		case updateEvt:      WindowPtr window = reinterpret_cast<WindowPtr>(cbRec->eventData.eventDataParms.event->message);      nsMacWindow* macWindow = nsMacMessageSink::GetNSWindowFromMacWindow(window);      ::BeginUpdate(window);      if (macWindow) {        EventRecord   theEvent = *cbRec->eventData.eventDataParms.event;        macWindow->HandleOSEvent(theEvent);      }              ::EndUpdate(window);	        			break;		}		break;	}}