Path: utzoo!attcan!uunet!mcvax!unido!fauern!faui44!msurlich From: msurlich@faui44.informatik.uni-erlangen.de ( scheme) Newsgroups: comp.sys.mac.programmer Subject: Re: Parameterizable INITs (was:Dialogs in INITS (LSC3)) Message-ID: <646@faui10.informatik.uni-erlangen.de> Date: 3 Oct 88 14:34:57 GMT References: <491@poseidon.UUCP> <10050016@eecs.nwu.edu> Reply-To: m_urlichs@msn.rmi.de Organization: CSD., University of Erlangen, W - Germany Lines: 38 In article <10050016@eecs.nwu.edu> bob@eecs.nwu.edu (Bob Hablutzel) writes: In sone other article I wrote: > > 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. Oops... should have looked more carefully. And well, because InitGraf already has been called for me, I won't call it again. And yes, I still need a good general procedure to tell me if The ROM has been initialized. Nosy mentions some low memory globals like WWExist(s)(?) (telling me if the Window Manager has been initialized). The version of Smart Alarms I checked looks at the center of the top row of the menu bar to see if it's white (sorry, I Kolor'ed my menu bar and so I can't use Smart Alarms :-( )... Any word from Apple? > > 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). > Exactly what I need (Aask is too slow for me, anyway, because by now it displays about five and a half rows of INITs on my Mac II and the Disk Cach is INIT 35 and gets installed after all other INITs ...) How will I (or anybody else, for that matter) be able to get it?