MacEvent me= new MacEvent(); while (OS.GetNextEvent(OS.updateMask, me.getData()))
int[] macEvent= new int[6]; while (OS.GetNextEvent(OS.updateMask, macEvent))
	static void processAllUpdateEvents(int cHandle) {			if (SMART_REFRESH)			return;					if (true) {			MacEvent me= new MacEvent();			while (OS.GetNextEvent(OS.updateMask, me.getData()))				;				//if (me.getWhat() == OS.updateEvt)				//	getDefault().updateWindow(me.getMessage());		} else {			int[] mask= new int[] {				OS.kEventClassWindow, OS.kEventWindowDrawContent			};			int[] evt= new int[1];			while (OS.ReceiveNextEvent(mask, 0.2, true, evt) == OS.kNoErr) {				//System.out.println("got update");				int rc= OS.SendEventToEventTarget(evt[0], OS.GetEventDispatcherTarget());                //if (rc != OS.kNoErr)				//	System.out.println("processAllUpdateEvents: " + rc);				OS.ReleaseEvent(evt[0]);			}		}		int wHandle= OS.GetControlOwner(cHandle);		if (wHandle != 0) {			int port= OS.GetWindowPort(wHandle);			if (port != 0)				OS.QDFlushPortBuffer(port, 0);		}	}