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