home *** CD-ROM | disk | FTP | other *** search
- 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
- From: udmorrow@mcs.drexel.edu (Daniel Morrow)
- Newsgroups: comp.sys.mac.programmer
- Subject: Re: checking for ShutDown under syste 6.
- Message-ID: <1992Dec20.023518.12471@mcs.drexel.edu>
- Date: 20 Dec 92 02:35:18 GMT
- References: <1992Dec19.233443.11739@mcs.drexel.edu>
- Distribution: usa
- Organization: Drexel University
- Lines: 17
-
- In article <1992Dec19.233443.11739@mcs.drexel.edu> udmorrow@mcs.drexel.edu (Daniel Morrow) writes:
- >Under system 6, it seems that when the computer shuts down, the system just
- >looks for the File menu, and then the Quit item and posts the proper event
- >to trigger this. (I really don't know how it works).
- >
- Yes, I'm answering my own post before I get any responses on it.
-
- Sorry that I wasted some people's time with this question, but I found
- the answer already, by adding two lines of code to my program,
- ShutDwnInstall (which takes a procPtr to execute upon shutdown)
- ShutDwnRemove (called right before ExitToShell for whatever reason)
-
- These work quite nicely. (also work under sys 7)
-
- Again, sorry to waste the bandwidth on this one.
-
- -Dan.
-