Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!zaphod.mps.ohio-state.edu!julius.cs.uiuc.edu!apple!well!gurgle From: gurgle@well.sf.ca.us (Pete Gontier) Newsgroups: comp.sys.mac.programmer Subject: patching globally after MF Keywords: MultiFinder trap patch Message-ID: <20695@well.sf.ca.us> Date: 21 Sep 90 21:34:53 GMT Distribution: comp Lines: 17 I need to monitor NewWindow. MultiFinder seems to be patching NewWindow and *replacing* it. Thus, a patch I install at INIT time never gets called. A patch to NewWindow I install at the time of the first GetNextEvent affects only the Finder (or the startup application) even if my patch code lives in the System Heap. I patched OpenResFile and waited for something other than MultiFinder to be opened. But by that time, MF has monkeyed with SetTrapAddress enough that the trap dispatcher gets confused and blows up. Anybody got any secrets about patching after MultiFinder? -- Pete Gontier, gurgle@well.sf.ca.us Software Imagineer, Kiwi Software, Inc.