home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / sys / mac / programm / 14003 < prev    next >
Encoding:
Internet Message Format  |  1992-08-14  |  1.8 KB

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