Path: utzoo!attcan!uunet!lll-winken!ames!apple!han From: han@Apple.COM (Byron Han, wyl E. coyote ) Newsgroups: comp.sys.mac.programmer Subject: Re: Patching a trap address Message-ID: <31812@apple.Apple.COM> Date: 27 May 89 17:05:05 GMT References: <5563@hubcap.clemson.edu> <23164@dhw68k.cts.com> <31640@apple.Apple.COM> <22635@srcsip.UUCP> Organization: Apple R&D - Networking & Communications Lines: 26 article <22635@srcsip.UUCP> mnkonar@src.honeywell.com (Murat N. Konar) writes: >In article <31640@apple.Apple.COM> han@Apple.COM (Byron Han, wyl E. coyote ) writes: >(stuff about using GetTrapAddress and SetTrapAddress to patch traps deleted) >>Actually NGetTrapAddress and NSetTrapAddress defined in IM-IV are the >>recommended calls. > >What is the difference? Is there some advantage to using NGet/SetTrapAddress? >Or is it to ensure future compatibility? GetTrapAddress and SetTrapAddress were used with the old 64K ROM's. The new routines NGetTrapAddress and NSetTrapAddress allow developers to specify whether or not they are mucking with OS or Toolbox traps. You do need to make sure that you are running with 128K ROM's or later. See Inside Macintosh Volume IV (233-234) +-----------------------------------------------------------------------------+ | Disclaimer: Apple has no connection with my postings. | +-----------------------------------------------------------------------------+ Byron Han, Communications Scapegoat At Apple, we change the world everyday. Apple Computer, Inc. ----------------------------------------- 20525 Mariani Ave, MS27Y Internet: han@apple.COM Cupertino, CA 95014 UUCP:{sun,voder,nsc,decwrl}!apple!han ------------------------------------ GENIE:BYRONHAN CompuServe:72167,1664 ATTnet: 408-974-6450 Applelink:HAN1 HAN1@applelink.apple.COM -------------------------------------------------------------------------------