Path: utzoo!utgpu!watmath!clyde!att!ucbvax!agate!bionet!apple!parent From: parent@Apple.COM (Sean Parent) Newsgroups: comp.sys.mac.programmer Subject: Re: Dialogs in Init Code Summary: Init dialogs Message-ID: <23784@apple.Apple.COM> Date: 11 Jan 89 23:55:42 GMT References: <20488@ames.arc.nasa.gov> <10050065@accuvax.nwu.edu> <11712@dartvax.Dartmouth.EDU> Organization: Apple Computer Inc., Cupertino, CA Lines: 25 In article <11712@dartvax.Dartmouth.EDU>, erics@eleazar.dartmouth.edu (Eric Schlegel) writes: > In article <10050065@accuvax.nwu.edu> bob@accuvax.nwu.edu (Bob Hablutzel) writes: > >> I am trying to display a dialog window in Init code, and am > >> having problems. Is there some limitations on the dialogs > >> within init code. I just want to display a dialog with > >> a static text item when the init boots up. I am using > >> aztec v3.6c. > > I recall hearing that Mac DTS recommends not using the Dialog Manager during > INIT time. A better solution is simply to use QuickDraw directly to draw > the dialog. I would also not recommend putting up a dialog at init time because it will blast out the show init icons. I would use show init and if more information was needed then display a dialog after the machine is fully started. This could be done with a patch to GetNextEvent or SystemTask. If you must display something at startup then set up A5 and currentA5 and call InitGraph. Restore A5 and current A5 on the way out. You could also init the rest of the system after this and pop up a dialog. If you do this you will need to set deskHook to nil and restore it on the way out. Disclaimer: I do not recommend any of the above methods and they may break on some future release. Sean