• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: AppleDouble format
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: AppleDouble format


  • Subject: Re: AppleDouble format
  • From: Peter Johnson <email@hidden>
  • Date: Tue, 6 Nov 2001 09:00:03 -0500

There is a pdf at <http://www.lazerware.com/formats/Specs/AppleSingle_AppleDouble.pdf> that documents the AppleDouble (and AppleSingle) formats.

I believe the ._filename file has a bunch of meta-data in the file as well as the resource fork data.

It should be relatively easy to extract the "resource fork" out of the ._filename file, and then, using the Carbon APIs, create the resource fork on the data file, open the resource fork as a "normal" fork (i.e. don't open it as a resource file), and write the resource fork data to it. At that point I believe you will have essentially recovered your original dual-forked file. Of course, you may want to do something with the meta-data in the ._filename file as well, like set the file type and creator.

Some Carbon APIs you might be interested in:

FSpCreateResFile
FSpOpenRF (not FSpOpenResFile)
FSClose

Those are FSSpec based, which I am drawing from memory. I'm sure there are FSRef based equivalents.

Hope that helps...

On Monday, November 5, 2001, at 02:46 PM, Charles Srstka wrote:

Does anyone know of a way to programmatically decode those ._filename AppleDouble files that UFS uses into actual HFS resource forks? Also, is it possible to determine the format of a drive programmatically?
_______________________________________________
cocoa-dev mailing list
email@hidden
http://www.lists.apple.com/mailman/listinfo/cocoa-dev


  • Follow-Ups:
    • Re: AppleDouble format
      • From: Charles Srstka <email@hidden>
References: 
 >AppleDouble format (From: Charles Srstka <email@hidden>)

  • Prev by Date: Re: Animated NSSliders: the code.
  • Next by Date: mouseMoved messages (modifying DotView)
  • Previous by thread: Re: AppleDouble format
  • Next by thread: Re: AppleDouble format
  • Index(es):
    • Date
    • Thread