home *** CD-ROM | disk | FTP | other *** search
- 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
- From: udmorrow@mcs.drexel.edu (Daniel Morrow)
- Newsgroups: comp.sys.mac.programmer
- Subject: checking for ShutDown under syste 6.
- Message-ID: <1992Dec19.233443.11739@mcs.drexel.edu>
- Date: 19 Dec 92 23:34:43 GMT
- Sender: udmorrow@mcs.drexel.edu (Daniel Morrow)
- Distribution: usa
- Organization: Drexel University, Dept. of Math. and Comp. Sci.
- Lines: 19
-
- 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).
-
- But if I choose not to have a File menu in the menu bar (This program does
- no filing) the machine cannot shut down.
-
- I really don't want a File menu at all for the program (read: game) since
- the only files it saves are preference and high scores.
-
- So, what I need to know is, well, is there some OSEvent or something that I
- can check for in the event loop when the machine is shutting down so I can
- make it quit myself?
-
- (This is not a problem for sys 7 since I just have to check for the Apple
- event.)
-
- Thanks.
- -Dan.
-