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

  1. Path: sparky!uunet!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!news.sei.cmu.edu!cert!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: Re: checking for ShutDown under syste 6.
  5. Message-ID: <1992Dec20.023518.12471@mcs.drexel.edu>
  6. Date: 20 Dec 92 02:35:18 GMT
  7. References: <1992Dec19.233443.11739@mcs.drexel.edu>
  8. Distribution: usa
  9. Organization: Drexel University
  10. Lines: 17
  11.  
  12. In article <1992Dec19.233443.11739@mcs.drexel.edu> udmorrow@mcs.drexel.edu (Daniel Morrow) writes:
  13. >Under system 6, it seems that when the computer shuts down, the system just
  14. >looks for the File menu, and then the Quit item and posts the proper event
  15. >to trigger this. (I really don't know how it works).
  16. >
  17. Yes, I'm answering my own post before I get any responses on it.
  18.  
  19. Sorry that I wasted some people's time with this question, but I found
  20. the answer already, by adding two lines of code to my program, 
  21.     ShutDwnInstall (which takes a procPtr to execute upon shutdown)
  22.     ShutDwnRemove (called right before ExitToShell for whatever reason)
  23.  
  24. These work quite nicely. (also work under sys 7)
  25.  
  26. Again, sorry to waste the bandwidth on this one.
  27.  
  28. -Dan.
  29.