Path: utzoo!attcan!uunet!mcsun!cernvax!chx400!ethz!neptune!iiic.ethz.ch!mneerach From: mneerach@iiic.ethz.ch (Matthias Ulrich Neeracher) Newsgroups: comp.sys.mac.programmer Subject: Re: patching globally after MF Message-ID: <9675@neptune.inf.ethz.ch> Date: 26 Sep 90 19:22:07 GMT References: <20695@well.sf.ca.us> <34224@cup.portal.com> Sender: news@neptune.inf.ethz.ch Reply-To: mneerach@iiic.ethz.ch (Matthias Ulrich Neeracher) Organization: Departement Informatik, ETH, Zurich Lines: 21 In article <34224@cup.portal.com> jwhitnell@cup.portal.com (Jerry D Whitnell) writes: > Pete Gontier, gurgle@well.sf.ca.us writes... >|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. >|Anybody got any secrets about patching after MultiFinder? > > Try looking for one of the Init* that everyone has >to call at the beginning of their program (InitGraf, InitWindow, ad nasum) >for one that is not patched by MF, and patch it to patch NewWindow. In my experience, InitGraf works fine but you have to be *extremely* careful not to install your patch twice. This can be quite tricky, especially under Finder. You also have to think about removing your patch again. Matthias ----- Matthias Neeracher mneerach@iiic.ethz.ch "These days, though, you have to be pretty technical before you can even aspire to crudeness." -- William Gibson, _Johnny Mnemonic_