Article View: comp.sys.next.programmer
Article #966Re: [NXApp run]
From: Paul Burchard
Date: Tue, 01 Sep 1992 00:27
Date: Tue, 01 Sep 1992 00:27
33 lines
2078 bytes
2078 bytes
In article <1992Aug31.143034.12176@visus.com> jml@visus.com (Jim Large) writes: > In article <1992Aug25.092051@fdr.jsc.nasa.gov> shirley@fdr.jsc.nasa.gov (Bill > Shirley [CSC]) writes: > > > > Does the -run method of Application NEED to be invoked. > > I need a little bit more control over the event loop. > > I've found that some desirable things happen when -[Application run] is > called. The only one I know about for sure is that the application's icon > (which is highlighted when you launch the app) becomes unhighlighted. You have to be a bit careful even during the event loop itself. [NXApp run] takes care of some things that are not events. One example is reseting cursor rects (although you can easily set them explicitly to prevent this problem). There are other examples noted in the concept docs. There really should be a way to "flush" NXApp, dispatching all pending events and performing any other NXApp chores, and then returning. I do not know of any way to kludge this with the current API (the modal loop methods almost fit the bill but they all discard some events). I would suggest NeXT add the following method to NXApp to achieve this: - flushEvents:(int)mask waitFor:(double)timeout threshold:(int)level with parameters analogous to -getNextEvent:waitFor:threshold:. Anyone at NeXT listening? -- -------------------------------------------------------------------- Paul Burchard <burchard@math.utah.edu> ``I'm still learning how to count backwards from infinity...'' --------------------------------------------------------------------
Technical Details
Message-ID:
<1992Sep1.002728.15172@fcom.cc.utah.edu>Path:
arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!cs.utexas.edu!hellgate.utah.edu!fcom.cc.utah.edu!newsReferences:
<1992Aug31.143034.12176@visus.com>Show Full Headers
Complete Article Headers
Newsgroups: comp.sys.next.programmer Path: arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!cs.utexas.edu!hellgate.utah.edu!fcom.cc.utah.edu!news From: burchard@horizon.math.utah.edu (Paul Burchard) Subject: Re: [NXApp run] Message-ID: <1992Sep1.002728.15172@fcom.cc.utah.edu> Sender: news@fcom.cc.utah.edu Organization: University of Utah Computer Center References: <1992Aug31.143034.12176@visus.com> Date: Tue, 1 Sep 92 00:27:28 GMT Lines: 33