home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / sys / mac / programm / 20103 < prev    next >
Encoding:
Internet Message Format  |  1992-12-21  |  1.2 KB

  1. Path: sparky!uunet!zaphod.mps.ohio-state.edu!darwin.sura.net!jvnc.net!netnews.upenn.edu!netnews.noc.drexel.edu!king.mcs.drexel.edu!udmorrow
  2. From: udmorrow@mcs.drexel.edu (Daniel Morrow)
  3. Newsgroups: comp.sys.mac.programmer
  4. Subject: checking for ShutDown under syste 6.
  5. Message-ID: <1992Dec19.233443.11739@mcs.drexel.edu>
  6. Date: 19 Dec 92 23:34:43 GMT
  7. Sender: udmorrow@mcs.drexel.edu (Daniel Morrow)
  8. Distribution: usa
  9. Organization: Drexel University, Dept. of Math. and Comp. Sci.
  10. Lines: 19
  11.  
  12. Under system 6, it seems that when the computer shuts down, the system just
  13. looks for the File menu, and then the Quit item and posts the proper event
  14. to trigger this. (I really don't know how it works).
  15.  
  16. But if I choose not to have a File menu in the menu bar (This program does
  17. no filing) the machine cannot shut down.
  18.  
  19. I really don't want a File menu at all for the program (read: game) since
  20. the only files it saves are preference and high scores.
  21.  
  22. So, what I need to know is, well, is there some OSEvent or something that I
  23. can check for in the event loop when the machine is shutting down so I can 
  24. make it quit myself?
  25.  
  26. (This is not a problem for sys 7 since I just have to check for the Apple
  27. event.)
  28.  
  29. Thanks.
  30. -Dan.
  31.