Path: utzoo!utgpu!water!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!husc6!bbn!rochester!cornell!batcomputer!itsgw!steinmetz!uunet!mcvax!uva!freek From: freek@uva.UUCP (Freek Wiedijk) Newsgroups: comp.sys.mac.programmer Subject: A suicidal desk accessory Message-ID: <326@uva.UUCP> Date: 28 May 88 14:27:12 GMT Reply-To: freek@uva.UUCP (Freek Wiedijk) Organization: Faculteit Wiskunde & Informatica, Universiteit van Amsterdam Lines: 20 I've seen the following question before on the net, but I still don't know the answer: What is the proper way for my desk accessory to commit suicide, i.e. to close itself and vanish without leaving a trace? (i) To call my own Close routine won't help much, because the system won't know I'm doing it, and the DA will stay active. (ii) However if I call CloseDeskAcc from within the DA code, that code won't be there to return to, after CloseDeskAcc is finished (or will it?). Is it possible that I am mistaken, and that the only way to terminate a DA is by closing it with the close box of its window, or with Close from the File menu (in both cases CloseDeskAcc will be called from outside the DA)? The correct answer to this question (a reference to the proper tech. note?) will be appreciated. Can Larry Rosenstein send one of his very clear replies? -- Freek Wiedijk UUCP: uunet!mcvax!uva!freek #P:+/ = #+/P?*+/ = i<<*+/P?*+/ = +/i<<**P?*+/ = +/(i<<*P?)*+/ = +/+/(i<<*P?)**