Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!samsung!crackers!m2c!umvlsi!umaecs!amh!djvelleman From: djvelleman@amherst.bitnet Newsgroups: comp.sys.mac.programmer Subject: Re: Problem with GetString? Or is it me? Message-ID: <11618.2796d2ab@amherst.bitnet> Date: 18 Jan 91 10:49:15 GMT References: <1991Jan16.020012.24103@trl.oz.au> <1991Jan16.202350.4238@cbnewsk.att.com> Lines: 18 In article <1991Jan16.202350.4238@cbnewsk.att.com>, ech@cbnewsk.att.com (ned.horvath) writes: >> if ((theString = GetString(strID)) == nil) { > > Correction: in my last posting, I suggested using > LoadResource (theString); > to ensure that the contents were in memory. IM-1 claims that GetString > will do that for you, so the LoadResource is unnecessary. > > There is a point to be made here, though: for resource types without > a specific "Get..." routine, it's best to follow a (successful) call > to GetResource with a call to LoadResource, in case the resource was > previously loaded and purged. IM-1 also claims that GetResource will load the resource data into memory if it's not in memory, so I don't see the need for LoadResource in this case either (unless you've called SetResLoad(false)). Or am I misinterpreting IM? Dan Velleman