home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!enterpoop.mit.edu!eru.mt.luth.se!kth.se!dront.nada.kth.se!d88-jwa
- From: d88-jwa@dront.nada.kth.se (Jon Wtte)
- Newsgroups: comp.sys.mac.programmer
- Subject: Re: Detecting reboot or startup
- Message-ID: <1992Dec16.132825.13170@kth.se>
- Date: 16 Dec 92 13:28:25 GMT
- References: <cmcclary-151292113831@mcclary-mac.ucs.indiana.edu>
- Sender: usenet@kth.se (Usenet)
- Organization: Royal Institute of Technology, Stockholm, Sweden
- Lines: 20
- Nntp-Posting-Host: dront.nada.kth.se
-
- In <cmcclary-151292113831@mcclary-mac.ucs.indiana.edu> cmcclary@ucs.indiana.edu (Charles McClary) writes:
-
- >What is the best/preferred method for an application to detect if the
- >system has been rebooted or restarted since it (the application) last ran.
-
- Install a gestalt selector with your own signature as selector code.
-
- If it's there, the application run previously during this "session."
- The selector code should reside in the system heap, and could simply
- return a 0 as result; you would test for presence, not return code.
-
- Cheers,
-
- / h+
-
- --
- -- Jon W{tte, h+@nada.kth.se, Mac Hacker Deluxe --
-
- Nothing crashes like a Macintosh.
- -- Guy Kawasaki
-