[comp.sys.mac] Saving info with text files

tomc@mntgfx.MENTOR.COM (Tom Carstensen) (10/03/87)

We haven't been recieving any news, so I'm reposting
this in hope for some responses.


Most text editors save information (such as font,
fontsize, tabs, etc) in the resource fork of the
text file.
   Every text editor used on the file adds to 
the list of resources.

THE SCENARIO:  I Have just saved a text file with my
own text editor which uses a resource file to store
such information.  Now I use two other editors, which
when selecting SAVE add their own resource information.
This text file STILL has a CREATOR type from my text
editor                                              .

QUESTION:  Should my text editor delete the others resources
from the text file when it save the file again?

I beleive that the text file should only contain resource
information that is associated with it's CREATOR field.
Therefore, when I save to my text editor-text files, I should
delete other resources.  But when I am saving to someone elses
text file, I should not delete them, and I SHOULD NOT put 
my own their.

Having everyone add thier resources to the file seems wasteful,
and could get ridiculous.

Well?

:------------------------------------------------------------:
: Tom Carstensen              Usenet: tomc@mntgfx.MENTOR.COM :
: Mentor Graphics             GEnie:                         :
:------------------------------------------------------------: