[futurebasic] Re: [FB] STR# resource

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : April 2003 : Group Archive : Group : All Groups

From: Alain Pastor <apastor@...>
Date: Mon, 21 Apr 2003 10:47:04 +0200

barrie wrote:

> Thanks for the education. I didn't realize that resources should not be
> altered. Now I know why I couldn't find an easy way to change the STR#
> strings. I re-thought the problem and decided that I can do without the
> changed resource. Many thanks to all, I learned a lot about using resource
> code.

Barrie,

Just an additional note. First, notice that Apple doesn't follow its 
own advice with the dictionary Manager (at least under Mac OS 9, I 
don't know about OS X) using the resource fork of a dictionary file to 
store the data, second, the apps built with PG PRO alter their own 
resource fork. In other word it is not recommended but it is not like 
it is forbidden.

In case you change your mind again and come back to using resources 
with your PG project, there's a great trick from George Beckman that 
you need to know. It requires that you apply a couple of little 
changes in the PG header files. Your app will still run like before 
except that it stores the resources that have changed in an external 
file on the startup disk, then it will automatically retrieve those 
resources when necessary. You can read more about this here:

http://www.pixmix.com/FB/HowTo/PGPRO/PGPRO001.html

Alain