Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!julius.cs.uiuc.edu!apple!stadler From: stadler@Apple.COM (Andy Stadler) Newsgroups: comp.sys.apple2 Subject: Re: IIGS toolbox questions Message-ID: <49059@apple.Apple.COM> Date: 12 Feb 91 01:18:18 GMT References: <1991Feb7.060339.16154@csn.org> Organization: Apple Computer Inc., Cupertino, CA Lines: 26 In article <1991Feb7.060339.16154@csn.org> hartkopf@spot.Colorado.EDU (Jeff Hartkopf) writes: > >(1) Is there a way to make StartUpTools open the application's resource > fork with read *and* write access? If not, what is the best way to > handle this? Is it to close and then reopen the resource fork, > properly setting the resFileID field of the StartStopRecord returned > by StartUpTools? > Yep, that's exactly the right thing to do. Here's actual real live source code from HyperCardIIGS, where we needed to do exactly what you describe: hyperCardResFile := startStopInfo.resFileID; {$IFC Internal } { convert the read-only resource fork to read/write } CloseResourceFile(hyperCardResFile); hyperCardResFile := OpenResourceFile(read+write, NIL, hyperCardAppName); IF _toolErr <> 0 THEN hyperCardResFile := 0; startStopInfo.resFileID := hyperCardResFile; {$ENDC } This code worked just fine! Andy Stadler HyperCardIIGS Team Apple Computer, Inc.