home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.mac.programmer
- Path: sparky!uunet!spool.mu.edu!yale.edu!ira.uka.de!math.fu-berlin.de!uniol!Martin.Friedrich
- From: Martin.Friedrich@arbi.informatik.uni-oldenburg.de (Martin Friedrich)
- Subject: Problem with Restart/Shutdown and QuitApplicationAE
- Organization: University of Oldenburg, Germany
- Date: Wed, 9 Sep 1992 13:11:53 GMT
- Message-ID: <1992Sep9.132657.6071@arbi.Informatik.Uni-Oldenburg.DE>
- Sender: news@arbi.Informatik.Uni-Oldenburg.DE
- Lines: 30
-
- Hi !
-
- I'm writing a program that needs to inform the user at restart or shutdown
- to terminate the program manually and prevent the restart or shutdown. When
- receiving the QuitApplication Event, the handling routine returns
- userCanceledErr, after bringing up a notification to the user.
-
- The first time this works. But when trying to restart repeatedly, nothing
- happends. It seems that the Finder doesn't send the AE to my application.
- Only when launching another application, the behaviour for the next QA Event
- is OK. When trying to restart again, same problem.
-
- Another question: Is there any way to tell wether the Finder send the
- QA Event in a restart or shutdown situation?
-
- Thanks in advance
- --
- LLaP
- Martin Friedrich
-
- -----------------------------------------------------------------------------
- |"I never will understand
- REAL Martin Friedrich (CS-Student) | humans ..."
- NICK jupp | -- Spock, Patterns of Force
- UUCP friedrich@uniol --------------------------------
- DOMAIN Martin.Friedrich@arbi.informatik.uni-oldenburg.de
- HOME Straekweg 1 , 2986 Leezdorf
-
- Superior abilities breed superior ambitions
- -----------------------------------------------------------------------------
-