home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / sys / mac / programm / 15222 < prev    next >
Encoding:
Text File  |  1992-09-09  |  1.7 KB  |  41 lines

  1. Newsgroups: comp.sys.mac.programmer
  2. Path: sparky!uunet!spool.mu.edu!yale.edu!ira.uka.de!math.fu-berlin.de!uniol!Martin.Friedrich
  3. From: Martin.Friedrich@arbi.informatik.uni-oldenburg.de (Martin Friedrich)
  4. Subject: Problem with Restart/Shutdown and QuitApplicationAE
  5. Organization: University of Oldenburg, Germany
  6. Date: Wed, 9 Sep 1992 13:11:53 GMT
  7. Message-ID: <1992Sep9.132657.6071@arbi.Informatik.Uni-Oldenburg.DE>
  8. Sender: news@arbi.Informatik.Uni-Oldenburg.DE
  9. Lines: 30
  10.  
  11. Hi !
  12.  
  13. I'm writing a program that needs to inform the user at restart or shutdown
  14. to terminate the program manually and prevent the restart or shutdown. When
  15. receiving the QuitApplication Event, the handling routine returns
  16. userCanceledErr, after bringing up a notification to the user.
  17.  
  18. The first time this works. But when trying to restart repeatedly, nothing
  19. happends. It seems that the Finder doesn't send the AE to my application.
  20. Only when launching another application, the behaviour for the next QA Event
  21. is OK. When trying to restart again, same problem.
  22.  
  23. Another question: Is there any way to tell wether the Finder send the
  24. QA Event in a restart or shutdown situation?
  25.  
  26. Thanks in advance
  27. -- 
  28. LLaP
  29.        Martin Friedrich
  30.  
  31. -----------------------------------------------------------------------------
  32.                          |"I never will understand
  33. REAL      Martin Friedrich   (CS-Student)    | humans ..."
  34. NICK      jupp                               | -- Spock, Patterns of Force
  35. UUCP      friedrich@uniol                    --------------------------------
  36. DOMAIN    Martin.Friedrich@arbi.informatik.uni-oldenburg.de
  37. HOME      Straekweg 1 , 2986 Leezdorf
  38.  
  39.      Superior abilities breed superior ambitions
  40. -----------------------------------------------------------------------------
  41.