home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / sys / mac / programm / 18174 < prev    next >
Encoding:
Internet Message Format  |  1992-11-09  |  1.9 KB

  1. Path: sparky!uunet!paladin.american.edu!darwin.sura.net!zaphod.mps.ohio-state.edu!rpi!bu.edu!dartvax!Mark.R.Valence
  2. From: Mark.R.Valence@dartmouth.edu (Mark R. Valence)
  3. Newsgroups: comp.sys.mac.programmer
  4. Subject: Re: INIT's/System Extension Questions
  5. Message-ID: <1992Nov9.142944.3187@dartvax.dartmouth.edu>
  6. Date: 9 Nov 92 14:29:44 GMT
  7. References: <1992Nov5.184623.15326@asuvax.eas.asu.edu>  
  8.  <19028@ucdavis.ucdavis.edu>
  9. Sender: news@dartvax.dartmouth.edu (The News Manager)
  10. Organization: Dartmouth College, Hanover, NH
  11. Lines: 30
  12. X-Posted-From: InterNews1.0a5@newshost.dartmouth.edu
  13.  
  14. In article <19028@ucdavis.ucdavis.edu>
  15. cklarson@taquito.engr.ucdavis.edu (Christopher Klaus Larson) writes:
  16.  
  17. > In article <1992Nov5.184623.15326@asuvax.eas.asu.edu> system@asuvax.eas.asu.edu (Marc Lesure) writes:
  18. >  
  19. > >Also, are there any snippets showing the best way to show an INIT icon
  20. > >during the booting sequence?
  21. >  
  22. > I'm not sure if this is the _best_ way to show an icon during startup, but
  23. > it has always worked for me. :-)
  24. > Feel free to use this as you see fit. Optimizations and bug fixes welcome.
  25.  
  26. I have two minor comments:
  27.  
  28. 1.  You save A5, and then restore A5 AND CurrentA5 to the A5's original
  29. value.  This is dangerous, as you are assuming A5 points to a valid
  30. quickdraw globals area upon entry to your code.  I would suggest
  31. instead that you save BOTH A5 and CurrentA5 in separate locations, and
  32. restore them separately.  If you don't, you will see some weird bugs
  33. with some pretty widely used INITs (I won't mention any names).
  34.  
  35. 2.  You should probably give some credit to the guys who wrote the
  36. original and most widely used version of this code.  They were the
  37. ones, I believe, who first used CurApName for temporary storage, and
  38. made it the "standard".  I, too have written my own version of this
  39. code (it's smaller than the original, and does the same stuff), but my
  40. code still credits the original source.
  41.  
  42. Mark.
  43.