home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / sys / apple2 / 23866 < prev    next >
Encoding:
Text File  |  1992-11-14  |  1.3 KB  |  34 lines

  1. Newsgroups: comp.sys.apple2
  2. Path: sparky!uunet!comp.vuw.ac.nz!actrix!David.Empson
  3. From: David.Empson@bbs.actrix.gen.nz
  4. Subject: Re: Resource Manager
  5. Organization: Actrix Information Exchange
  6. Date: Sat, 14 Nov 1992 02:06:15 GMT
  7. Message-ID: <1992Nov14.020615.16162@actrix.gen.nz>
  8. References: <9231714.22562@mulga.cs.mu.OZ.AU>
  9. Sender: David.Empson@actrix.gen.nz (David Empson)
  10. Lines: 22
  11.  
  12. In article <9231714.22562@mulga.cs.mu.OZ.AU> robm@ecr.mu.OZ.AU (Robert Mueller) writes:
  13. > I wish there was a resource manager call "CompressResFork" or
  14. > something like that. Since this doesn't yet exist, or doesn't
  15. > look like it ever will, does anyone have some source (only if
  16. > it's relatively small) that will do this?
  17.  
  18. The only "official" method of compressing the resource fork involves
  19. creating a new resource file, copying the resource one at a time to
  20. the other file, emptying the original resource fork (by setting its EOF
  21. to zero) then copying the new file back to the original one.
  22.  
  23. This would have to be surrounded by _very_ careful resource file
  24. opening/closing, to avoid serious problems.
  25.  
  26. Another method would be to directly access the data structures in the
  27. resource fork, but this is not a task for the faint of heart.  :-)
  28. -- 
  29. David Empson
  30.  
  31. Internet: David.Empson@bbs.actrix.gen.nz    EMPSON_D@kosmos.wcc.govt.nz
  32. Snail mail: P.O. Box 27-103, Wellington, New Zealand
  33.