Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!sdd.hp.com!spool.mu.edu!munnari.oz.au!comp.vuw.ac.nz!waikato.ac.nz!ldo From: ldo@waikato.ac.nz (Lawrence D'Oliveiro, Waikato University) Newsgroups: comp.sys.mac.programmer Subject: Re: Wanted - Gestalt traps Message-ID: <1991Mar28.194303.3273@waikato.ac.nz> Date: 28 Mar 91 07:43:03 GMT Article-I.D.: waikato.1991Mar28.194303.3273 References: <91085.093303CXT105@psuvm.psu.edu> Organization: University of Waikato, Hamilton, New Zealand Lines: 38 Let's see, a quick disassembly of GestaltGlue.a.o yields the following: * Gestalt is A-trap $A1AD inputs: D0.L <- selector : OSType outputs: D0.W -> status : OSErr A0 -> response : LongInt * NewGestalt is A-trap $A3AD inputs: D0.L <- selector : OSType A0 <- gestaltFunction : ProcPtr outputs: D0.W -> status : OSErr * ReplaceGestalt is A-trap $A5AD inputs: D0.L <- selector : OSType A0 <- gestaltFunction : ProcPtr outputs: D0.W -> status : OSErr A0 -> oldGestaltFunction : ProcPtr Note that these are all calls to the same trap ($A0AD) with different settings for the flag bits. Let's hope I got that right... Lawrence D'Oliveiro fone: +64-71-562-889 Computer Services Dept fax: +64-71-384-066 University of Waikato electric mail: ldo@waikato.ac.nz Hamilton, New Zealand 37^ 47' 26" S, 175^ 19' 7" E, GMT+12:00 "Letters may be excerpted or edited for clarity (or to make them look like they say what we wish they did)." -- "develop" magazine