Christopher Tate <CXT105@psuvm.psu.edu> (03/26/91)
If some kind soul could tell me what the trap words for _Gestalt,
_NewGestalt, and _ReplaceGestalt are, I'd be much obliged. The
MPW includes on apple.com don't have them defined in either Traps.a
or Traps.h.
-------
Christopher Tate | Vengeance (noun):
| Eye for eye, tooth for tooth;
Bitnet: cxt105@psuvm | a fair, satisfying, and rapid
Uucp: ...!psuvax1!psuvm.bitnet!cxt105 | way to a sightless, toothless
Internet: cxt105@psuvm.psu.edu | world.
ldo@waikato.ac.nz (Lawrence D'Oliveiro, Waikato University) (03/28/91)
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