Re: AppleDouble format
Re: AppleDouble format
- Subject: Re: AppleDouble format
- From: Charles Srstka <email@hidden>
- Date: Thu, 8 Nov 2001 21:36:23 -0600
On Thursday, November 8, 2001, at 05:22 AM, Markus Hitter wrote:
Am Donnerstag den, 8. November 2001, um 11:16, schrieb Charles Srstka:
Hmm, is it considered bad form to simply use NSFileHandle and append a
/rsrc to the end of the file path and just write to that? Because I
just tried doing that to put the data from Extras.rsrc in the resource
fork of a data file, just to see if it would work, and it did...
Two things to consider:
- It's an undocumented way so it might change in the future.
It had better not. I rather like being able to work with the resource
forks of files from the Terminal.
- It only works on HFS+, not on UFS.
Not a problem, since on UFS (and other non-forked file systems) the
AppleDouble file is used to store resource fork data. I don't need to
convert the AppleDouble file to a resource fork at all on UFS; I can
simply put the ._filename file in the same directory. I only need this
trick when I'm dealing with HFS volumes.
As of OS X 10.1 and according to the release notes, AppKit/Foundation
stuff works on all (don't forget AFS, NFS ...) types of filesystems
fine.
Markus
- - - - - - - - - - - - - - - - - - -
Dipl. Ing. Markus Hitter
http://www.jump-ing.de/