Article View: comp.sys.next.programmer
Article #786[NXApp run]
From: Bill Shirley [CSC]
Date: Tue, 25 Aug 1992 14:20
Date: Tue, 25 Aug 1992 14:20
39 lines
1723 bytes
1723 bytes
Does the -run method of Application NEED to be invoked. I need a little bit more control over the event loop. (NO, I didn't design it poorly, I didn't design it. I am trying to integrate an old program into a NeXTSTEP environment.) The program I'm trying to write a front end for (it was command line) calls a function that is equivalent to getc, and this function needs to return a character, probably dispatching other events while waiting for the character to come in. It's easy to get an event, but if I didn't wan't it how can I dispatch it? there's [NXApp getEvent: mask: threshhold:] (I don't have my manuals in front of me and I know that's wrong but you get the gist) Ok, I can limit the events to KEYPRESS, but what if it's a command-key or a control-key, or alt-key,... Is there a way to dispatch these event's that I didn't want to get? Should I peek and then take? Is it ok never to call [NXApp run] and deal with all your events otherwise? It would be nice if there was an [NXApp dispatch:event]. pondering... -- Bill Shirley | ``Computer Science is not about computers any shirley@fdr.jsc.nasa.gov| more than astronomy is about telescopes.'' -- Bill Shirley | ``Computer Science is not about computers any shirley@fdr.jsc.nasa.gov| more than astronomy is about telescopes.''
Technical Details
Message-ID:
<1992Aug25.092051@fdr.jsc.nasa.gov>Path:
arc1-ca.pugleaf.net!sparky!uunet!wupost!bcm!aio!shirleyShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!wupost!bcm!aio!shirley From: shirley@fdr.jsc.nasa.gov (Bill Shirley [CSC]) Newsgroups: comp.sys.next.programmer Subject: [NXApp run] Message-ID: <1992Aug25.092051@fdr.jsc.nasa.gov> Date: 25 Aug 1992 14:20:51 GMT Sender: shirley@fdr (Bill Shirley [CSC]) Organization: Software Technology Branch - NASA/JSC Lines: 39 Originator: shirley@fdr