Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!wuarchive!uunet!crdgw1!zephyrus!darweesh From: darweesh@zephyrus.crd.ge.com (Michael Darweesh) Newsgroups: comp.sys.mac.programmer Subject: Re: Getting Events in GetNextEvent patch Message-ID: <13720@crdgw1.crd.ge.com> Date: 13 Nov 90 18:04:23 GMT References: <998@h.cs.wvu.wvnet.edu> <14605@neptune.inf.ethz.ch> <1000@h.cs.wvu.wvnet.edu> Sender: news@crdgw1.crd.ge.com Organization: General Electric Corporate R&D Center Lines: 16 >> >> During your popup dialog, you just can call GetNextEvent. >> > >But will this cause problems. I don't want to allow a context-switch under >MultiFinder while the dialog is popped up. Can this happen if I use >GetNextEvent. I remember reading something about putting some magic value >in the windowkind attribute of a window to disallow a context-switch when >that window was frontmost am I on the right track. Well, if the fronmost window is a dBoxProc (standard for Modal Dialog etc.), then GetNextEvent will disallow context switching under any normal/reasonable circumstances. -Mike Darweesh weesh@crd.ge.com