home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!gatech!darwin.sura.net!wupost!uwm.edu!rutgers!uwvax!uchinews!quads!jcav
- From: jcav@quads.uchicago.edu (JohnC)
- Newsgroups: comp.sys.mac.programmer
- Subject: Re: Toolbox init (was Re: What is a memory error -113 ?)
- Message-ID: <1992Aug14.173914.15317@midway.uchicago.edu>
- Date: 14 Aug 92 17:39:14 GMT
- References: <13992@gazette.bcm.tmc.edu> <1992Aug13.031241.9631@gallant.apple.com> <1992Aug13.181036.10085@waikato.ac.nz>
- Sender: news@uchinews.uchicago.edu (News System)
- Reply-To: jcav@midway.uchicago.edu
- Organization: The Royal Society for Putting Things on Top of Other Things
- Lines: 26
-
- In article <1992Aug13.181036.10085@waikato.ac.nz> ldo@waikato.ac.nz (Lawrence D'Oliveiro, Waikato University) writes:
- >In article <1992Aug13.031241.9631@gallant.apple.com>, dodd@apple.com (Mike Dodd) writes:
- >>
- >> void initToolbox(void)
- >> {
- >> MaxApplZone();
- >> InitGraf(&qd.thePort);
- >> InitFonts();
- >
- >Technically speaking, you're supposed to call InitFonts *before* InitGraf.
- >Not that I've ever experienced any problems from doing it the other way
- >round...
-
- ???????? Where is this documented? All the source code I've ever seen
- (Apple samples, etc) has _InitGraf as the first "Init" call. I just looked
- at the documentation for _InitFonts in IM-1 and it says "Call this procedure
- once before all other Font Manager routines or any Toolbox routine that will
- call the Font Manager." Since Quickdraw does call the Font Manager, this
- supports your contention, but if this is true, then why does everyone do it
- the other way??
-
- --
- John Cavallino | EMail: jcav@midway.uchicago.edu
- University of Chicago Hospitals | John_Cavallino@uchfm.bsd.uchicago.edu
- Office of Facilities Management | USMail: 5841 S. Maryland Ave, MC 0953
- B0 f++ c+ g++ k s++ e+ h- pv | Chicago, IL 60637
-