Path: utzoo!attcan!uunet!mcvax!ukc!etive!lfcs!nick From: nick@lfcs.ed.ac.uk (Nick Rothwell) Newsgroups: comp.sys.mac.programmer Subject: What do InitGraf (etc) do? Message-ID: <988@etive.ed.ac.uk> Date: 21 Nov 88 14:59:58 GMT References: <987@etive.ed.ac.uk> Sender: news@etive.ed.ac.uk Reply-To: nick@lfcs.ed.ac.uk (Nick Rothwell) Organization: Laboratory for the Foundations of Computer Science, Edinburgh U Lines: 19 A short and sweet question: Why do my programs have to call InitGraf(), InitTE(), InitDialogs() and all the rest of this stuff? A Macintosh sitting in the Finder is running QuickDraw, putting up dialogs, and so on, so "initialisation" in that sense is surely unnecessary? Does it make sense to initialise a manager more than once? I presume this tells the managers to start using my application heap for "thinking space" rather than somebody else's (like the Finder's). Is this so? I'm trying to figure out whether code resources, DAs and so on, have to go through all this or not... Or am I just thinking the wrong way? Nick. -- Nick Rothwell, Laboratory for Foundations of Computer Science, Edinburgh. nick@lfcs.ed.ac.uk !mcvax!ukc!lfcs!nick ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ...while the builders of the cages sleep with bullets, bars and stone, they do not see your road to freedom that you build with flesh and bone.