Path: utzoo!utgpu!water!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!rutgers!uwvax!oddjob!tank!nucsrl!bob From: bob@eecs.nwu.edu (Bob Hablutzel) Newsgroups: comp.sys.mac.programmer Subject: Re: Parameterizable INITs (was:Dialogs in INITS (LSC3)) Message-ID: <10050016@eecs.nwu.edu> Date: 14 Sep 88 01:07:53 GMT References: <491@poseidon.UUCP> Organization: Northwestern U, Evanston IL, USA Lines: 22 > Looking at INIT31 reveals that InitGraf has already been called. > However, some Inits do it themselves and leave A5 pointing to anything at all > afterwards, so it's bad to call InitGraf (using your own port) and it may > create problems not to... Anyone have a good procedure to check if InitGraf > has been called? (Like comparing Arrow to a resource which contains a cloned > version of the standard cursor?) It doesn't really matter what INITs leave A5 pointing to, as INIT 31 saves and restores ALL registers (except A7, of course) as part of calling the INIT. Go ahead and call initGraf if you need to - just set up your A5 world first. > As an aside, Init31 also checks if the Cached bit is set and skips the > INIT/RDEV/cdev file if it is. Anyone have a newer version of AAsk (or a patch > which looks at that bit instead of changing the file type to "xNIT" and > similar nonsense :-( ? Don't know about Ask, but I am working in a project which does all that and much, much more. More facts when they are available (but it will be ready VERY SOON). Bob Hablutzel BOB@NUACC.ACNS.NWU.EDU