Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!uwm.edu!gem.mps.ohio-state.edu!apple!dlyons
From: dlyons@Apple.COM (David Lyons)
Newsgroups: comp.sys.apple
Subject: Re: StartUpTools and toolArray
Message-ID: <35224@apple.Apple.COM>
Date: 3 Oct 89 18:22:53 GMT
References: <8910011557.aa00662@SMOKE.BRL.MIL>
Organization: Apple Computer Inc, Cupertino, CA
Lines: 31

In article <8910011557.aa00662@SMOKE.BRL.MIL> MMPR004@ECNCDC.BITNET (Scott Hutinger) writes:
>Has anyone used the new StartUpTools call?

Yes.  (I love easy questions. :-)

(I believe you discovered in another message where you put the toolset numbers
and versions:  they go right there in the StartStopRecord, starting at offset
$C.)

>I guess you could always set up a resource for the tools, but am not sure
>how you are to read them in, as [StartUpTools] automatically starts up the
>Resource Manager.  Sort of a Catch-22 from my limited knowledge.  Maybe
>on load, the system looks for a resource of type rToolStartup, and automatically
>starts up your tools.  But then, where would the references be that are
>needed to call ShutDownTools, or required dPageHandle be located?

There is no Catch-22 here:  StartUpTools starts up the Resource Manager
before it loads your tools anyway.  When you pass refIsResource and a
resource ID to StartUpTools, it returns to you a handle that you eventually
pass to ShutDownTools (see page 51-20, last sentence).

[Page numbers refer to the APDA draft of Toolbox Reference, Volume 3.]
-- 

 --Dave Lyons, Apple Computer, Inc.          |   DAL Systems
   AppleLink--Apple Edition: DAVE.LYONS      |   P.O. Box 875
   America Online: Dave Lyons                |   Cupertino, CA 95015-0875
   GEnie: D.LYONS2 or DAVE.LYONS         CompuServe: 72177,3233
   Internet/BITNET:  dlyons@apple.com    UUCP:  ...!ames!apple!dlyons

   My opinions are my own, not Apple's.