Path: utzoo!utgpu!water!watmath!clyde!rutgers!iuvax!pur-ee!uiucdcs!uxc.cso.uiuc.edu!uxe.cso.uiuc.edu!swofford From: swofford@uxe.cso.uiuc.edu Newsgroups: comp.sys.mac Subject: Re: (LSC) Deep Dark Secrets Wanted! Message-ID: <46100057@uxe.cso.uiuc.edu> Date: 24 Jan 88 23:37:00 GMT References: <870111@hpcilzb.HP.COM> Lines: 35 Nf-ID: #R:hpcilzb.HP.COM:870111:uxe.cso.uiuc.edu:46100057:000:2122 Nf-From: uxe.cso.uiuc.edu!swofford Jan 24 17:37:00 1988 steele@unc.cs.unc.edu(Oliver Steele) writes in comp.sys.mac that tedj@hpcilzb.HP.COM (Ted Johnson) writes: >> (2)make a DA live forever (i.e., remain active across launching >> different applications from the non-multi Finder), unless >> you explicitly close it by clicking on it's close box. >> I assume this means patching one or more of the ROM routines.... > >Set the DA up to launch a VBL task. I think da-insect at sumex has >C source for this. > There is also an undocumented low memory global called 'CloseOrnHook' which defines a routine which is called by the system when a DA (or any DRVR, I believe) is to be called. You can put your own routine in here which will get called by the system when it tries to send your DA a goodbye kiss. At this time you can check to see how the kiss was generated (System, Close Box, Close Menu, etc) and then act appropriately. For more information on 'CloseOrnHook' check out an article by David Dunham (miniWriter, ACTA, etc.) in Volume II of Best of MacTutor. +--------------------------------------------------------------------------+ + | + + Leonard Rosenthol | USnail: 205 E. Healey #33 + + LazerWare, inc. | Champaign, Il 61820 + + GEnie: MACgician | + + ARPA: swofford@uxe.cso.uiuc.edu | Bitnet: 3FLOSDQ@UIUCNOSA.BITNET + + | + +--------------------------------------------------------------------------+ + Disclaimer #1: Since I own the company, I can say whatever I want, and + + not be responsible for it! + + + + Disclaimer #2: Anything I say may be construed as being under the + + jurisdiction of Disclaimer #1 + +--------------------------------------------------------------------------+