Path: utzoo!attcan!uunet!unisoft!hoptoad!tim From: tim@hoptoad.uucp (Tim Maroney) Newsgroups: comp.sys.mac.programmer Subject: Re: Multifinder: how do I patch GetNextEvent? Message-ID: <5677@hoptoad.uucp> Date: 17 Oct 88 21:44:11 GMT References: <747@ttrdf.UUCP> <10050025@eecs.nwu.edu> <2456@spray.CalComp.COM> <7374@well.UUCP> <5654@hoptoad.uucp> <18914@apple.Apple.COM> Reply-To: tim@hoptoad.UUCP (Tim Maroney) Organization: Eclectic Software, San Francisco Lines: 18 Thanks to Larry Rosenstein for his speedy and clear answer. (And while I'm at it, kudos to Apple employees in general for their greatly improved net support of late! It used to be that we could count on getting an answer which was at best curt and often outright rude; now we're practically guaranteed of a quick, clear, polite answer!) It seems that what you're saying is that the only safe kind of patch is one that does its stuff, clears the stack back to the return address, and then does a JMP.L to the old trap. Ick. Most trap patching applications I've seen or speculated on just can't be done that way. Could we at least get a list of "where-from" traps to make things a little less awful? -- Tim Maroney, Consultant, Eclectic Software, sun!hoptoad!tim "The Diabolonian position is new to the London playgoer of today, but not to lovers of serious literature. From Prometheus to the Wagnerian Siegfried, some enemy of the gods, unterrified champion of those oppressed by them, has always towered among the heroes of the loftiest poetry." - Shaw, "On Diabolonian Ethics"