[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Resource Manager
In article <9231714.22562@mulga.cs.mu.OZ.AU> robm@ecr.mu.OZ.AU (Robert Mueller) writes:
>
> I wish there was a resource manager call "CompressResFork" or
> something like that. Since this doesn't yet exist, or doesn't
> look like it ever will, does anyone have some source (only if
> it's relatively small) that will do this?
The only "official" method of compressing the resource fork involves
creating a new resource file, copying the resource one at a time to
the other file, emptying the original resource fork (by setting its EOF
to zero) then copying the new file back to the original one.
This would have to be surrounded by _very_ careful resource file
opening/closing, to avoid serious problems.
Another method would be to directly access the data structures in the
resource fork, but this is not a task for the faint of heart. :-)
--
David Empson
Internet: David.Empson@bbs.actrix.gen.nz EMPSON_D@kosmos.wcc.govt.nz
Snail mail: P.O. Box 27-103, Wellington, New Zealand