home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / sys / next / programm / 5277 < prev    next >
Encoding:
Text File  |  1992-07-27  |  1.4 KB  |  37 lines

  1. Newsgroups: comp.sys.next.programmer
  2. Path: sparky!uunet!psinntp!juliet!news
  3. From: dennis@fnbc.com (Dennis Box )
  4. Subject: (probably) newbie question about keyboard intercepts
  5. Message-ID: <1992Jul27.220624.1369@fnbc.com>
  6. Sender: news@fnbc.com
  7. Reply-To: dennis@fnbc.com (Dennis Box )
  8. Organization: First National Bank Of Chicago, Chicago IL, USA
  9. Date: Mon, 27 Jul 92 22:06:24 GMT
  10. Lines: 25
  11.  
  12. Hello all,
  13.  
  14. I have a NextStep application that occasionally goes into a (long) loop
  15. when a user asks the wrong query of its database. I have been asked
  16. to change this behaviour so that a control-c ejects the program from the
  17. loop, returning control to the main event loop.
  18.  
  19. My question is, where do keyboard interrupts go, and how does a programmer
  20. detect and use them?  The unix <signal.h> stuff doesn't work, NextStep or
  21. Mach or something obviously grabs signals uses them to its own ends.
  22.  
  23. Is there a function in NextStep that is as conceptually easy as the 
  24. signal.h stuff ?  Better yet, which appkit object contains the
  25. [actNormallyUntillAControlcIsPressedThenSendMessageTo:myObject] method?
  26. Can I easily roll my own such method?
  27.  
  28.  
  29. Thanks in advance,
  30.  
  31.  
  32. --
  33. Dennis D. Box              |   (312) 732-6329     | "Its FUN to have fun,
  34. My own opinions, not     | dennis@fnbc.com          | but you have to know 
  35. my employers. Your     | ddb@vpnet.chi.il.us    | how!"   -T. Geisel
  36. reactions may vary.     |  Kill Your Television.  
  37.