home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / sys / next / programm / 5801 < prev    next >
Encoding:
Internet Message Format  |  1992-08-26  |  1.6 KB

  1. Path: sparky!uunet!wupost!bcm!aio!shirley
  2. From: shirley@fdr.jsc.nasa.gov (Bill Shirley [CSC])
  3. Newsgroups: comp.sys.next.programmer
  4. Subject: [NXApp run]
  5. Message-ID: <1992Aug25.092051@fdr.jsc.nasa.gov>
  6. Date: 25 Aug 1992 14:20:51 GMT
  7. Sender: shirley@fdr (Bill Shirley [CSC])
  8. Organization: Software Technology Branch - NASA/JSC
  9. Lines: 39
  10. Originator: shirley@fdr
  11.  
  12.  
  13. Does the -run method of Application NEED to be invoked.
  14.  
  15. I need a little bit more control over the event loop.
  16.  
  17. (NO, I didn't design it poorly, I didn't design it. I am trying
  18.  to integrate an old program into a NeXTSTEP environment.)
  19.  
  20. The program I'm trying to write a front end for (it was command line)
  21. calls a function that is equivalent to getc, and this function needs
  22. to return a character, probably dispatching other events while waiting
  23. for the character to come in.
  24.  
  25. It's easy to get an event, but if I didn't wan't it how can I dispatch
  26. it?
  27.  
  28. there's [NXApp getEvent: mask: threshhold:]
  29.     (I don't have my manuals in front of me and I know
  30.     that's wrong but you get the gist)
  31.  
  32. Ok, I can limit the events to KEYPRESS, but what if it's a command-key
  33. or a control-key, or alt-key,...
  34.  
  35. Is there a way to dispatch these event's that I didn't want to get?
  36. Should I peek and then take?
  37.  
  38. Is it ok never to call [NXApp run] and deal with all your events otherwise?
  39.  
  40. It would be nice if there was an [NXApp dispatch:event].
  41.  
  42. pondering...
  43.  
  44. -- 
  45. Bill Shirley        |  ``Computer Science is not about computers any 
  46. shirley@fdr.jsc.nasa.gov|    more than astronomy is about telescopes.''
  47.  
  48. -- 
  49. Bill Shirley        |  ``Computer Science is not about computers any 
  50. shirley@fdr.jsc.nasa.gov|    more than astronomy is about telescopes.''
  51.