Article View: comp.sys.mac
Article #21245Re: Yet more INIT questions
From: Brian Matthews
Date: Wed, 04 Nov 1987 17:19
Date: Wed, 04 Nov 1987 17:19
29 lines
2125 bytes
2125 bytes
In article <4236@sdcsvax.UCSD.EDU> jww@sdcsvax.UCSD.EDU (Joel West) writes:
|Counting on having a QuickDraw grafport initialized in an INIT
|is a very bad move. So anything referenced via A5, including
|variables such as white, randSeed, etc. is out.
Agreed. It would only be a bad move if it didn't work. It's a VERY bad move
because it works under some Systems on some machines, and not on others, so
it's easy to be fooled into thinking it works everywhere. It DOESN'T. It's
also fairly simple to initialize Quickdraw's globals and open a port.
|I think QuickDraw can be used in an INIT; I just think you have to
|make your own port (I haven't done it, so don't quote me).
I have used QuickDraw from an INIT. You have to do a little more than open a
port (QuickDraw generally isn't even initialized at this point), but it's
fairly easy to get things to work.
|Usually INIT's are very simple, like to install some code that
|will be used later.
This is true in general. The reason I used QuickDraw in the INIT was so I
could set up some structures and calculate some sizes in code that was going
away after it was done (the INIT), thus reducing the amount of code laying in
the system heap all the time.
--
Brian L. Matthews "A man with one watch knows
...{mnetor,uw-beaver!ssc-vax}!cxsea!blm what time it is; a man with
+1 206 251 6811 two watches isn't so sure."
Computer X Inc. - a division of Motorola New Enterprises
Technical Details
Message-ID:
<2261@cxsea.UUCP>Path:
arc1-ca.pugleaf.net!utzoo!mnetor!uunet!seismo!sundc!pitstop!sun!amdcad!ames!ll-xn!mit-eddie!uw-beaver!ssc-vax!cxsea!blmReferences:
<3988@watdragon.waterloo.edu> <4236@sdcsvax.UCSD.EDU>Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: arc1-ca.pugleaf.net!utzoo!mnetor!uunet!seismo!sundc!pitstop!sun!amdcad!ames!ll-xn!mit-eddie!uw-beaver!ssc-vax!cxsea!blm From: blm@cxsea.UUCP (Brian Matthews) Newsgroups: comp.sys.mac Subject: Re: Yet more INIT questions Message-ID: <2261@cxsea.UUCP> Date: Wed, 4-Nov-87 12:19:04 EST Article-I.D.: cxsea.2261 Posted: Wed Nov 4 12:19:04 1987 Date-Received: Sat, 7-Nov-87 19:25:38 EST References: <3988@watdragon.waterloo.edu> <4236@sdcsvax.UCSD.EDU> Reply-To: blm@cxsea.UUCP (Brian Matthews) Organization: Computer X Inc. Lines: 29