Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!usc!apple!nerm From: nerm@Apple.COM (Dean Yu) Newsgroups: comp.sys.mac.programmer Subject: Re: GetIndString and System 7 Message-ID: <54390@apple.Apple.COM> Date: 27 Jun 91 18:30:30 GMT References: <1991Jun26.152232.27719@ux1.cso.uiuc.edu> Organization: Apple Computer Inc., Cupertino, CA Lines: 18 In article <1991Jun26.152232.27719@ux1.cso.uiuc.edu> resnick@cogsci.uiuc.edu (Pete Resnick/2113674) writes: >Now that there is a ReadPartialResource routine in System 7, I was >wondering if a) it is used for GetIndString and b) whether it is used >by the Help Manager to read in from STR# resources. I can always split >up my help and error strings better than I am now, but if this is taken >care of, I won't sweat it as much. > GetIndString has always been a glue routine that is implemented by whoever sells compilers, so we couldn't really re-write it using Partial Resource calls. At any rate, you can't really use these calls to implement GetIndString since ReadPartialResource takes a byte offset from the beginning of the resource, and you can't know where a string starts in a 'STR#'. -- Dean Yu Blue Meanie, Negative Ethnic Role Model, Window Cleaner, etc. Apple Computer, Inc. blah blah blah blah...