Resource Fork

From Just Solve the File Format Problem
(Difference between revisions)
Jump to: navigation, search
(7 intermediate revisions by 2 users not shown)
Line 3: Line 3:
 
|subcat=Filesystem
 
|subcat=Filesystem
 
}}
 
}}
 +
:''This article is about the concept of a Macintosh resource fork, and the methods of storing it. For the usual '''file format''' used by a resource fork, see [[Macintosh resource file]].''
  
 +
Pre-OS X and some OS X Macintosh files have two forks: the data fork, and the '''resource fork''', which is subdivided into resources. Many file formats use the resource fork to store data, stored in [[Macintosh resource file]] format.
  
Pre-OS X and some OS X Macintosh files have two forks: the data fork, and the resource fork, which is subdivided into resources. Many file formats use the resource fork to store data, stored in [[Macintosh resource file]] format.
+
Resource forks are usually invisible to the end-user on a Mac platform, but when Mac files are placed in a medium where users of other operating systems can see them (e.g., Windows), they are often visible as an additional subdirectory called '''resource.frk''', or else a name with an underscore (_) as its first character (e.g., _MACOSX for OS X files) containing subdirectories and files that parallel the structure of the files they are associated with.
  
A resource has a four-character type code, an ID, and data. The type code is generally unique to the type of data stored within, but this may not be the case with application-specific formats.
+
Later (Unix-based) Mac systems used [[AppleSingle]] and [[AppleDouble]] formats instead of the "classic" resource fork format when using filesystems not supporting direct use of resource forks. This usage continues in some OS X filesystems.
  
Resource forks are usually invisible to the end-user on a Mac platform, but when Mac files are placed in a medium where users of other operating systems can see them (e.g., Windows), they are often visible as an additional subdirectory called '''resource.frk''', or else a name with an underscore (_) as its first character (e.g., _MACOSX for OS X files) containing subdirectories and files that parallel the structure of the files they are associated with.
+
Other methods of storing a resource fork on a foreign filesystem include [[MacBinary]] and [[BinHex]].
  
 
== References ==
 
== References ==
* [http://en.wikipedia.org/wiki/Resource_fork Resource fork (Wikipedia)]
+
* [[Wikipedia:Resource fork|Resource fork (Wikipedia)]]
* [http://developer.apple.com/legacy/mac/library/documentation/mac/pdf/MoreMacintoshToolbox.pdf More Macintosh Toolbox] (format is described on page 1-121 to 1-125)
+
See also [[Macintosh resource file#References]].
* [http://code.google.com/p/ksfl/ KSFL] reads and writes Macintosh resource files
+
* [http://code.google.com/p/ksfl/wiki/MacintoshResourceFileFormat Description of the file format] from the KSFL wiki
+
  
 
[[Category:File format details]]
 
[[Category:File format details]]
 
[[Category:Macintosh]]
 
[[Category:Macintosh]]

Revision as of 17:32, 17 November 2018

File Format
Name Resource Fork
Ontology
This article is about the concept of a Macintosh resource fork, and the methods of storing it. For the usual file format used by a resource fork, see Macintosh resource file.

Pre-OS X and some OS X Macintosh files have two forks: the data fork, and the resource fork, which is subdivided into resources. Many file formats use the resource fork to store data, stored in Macintosh resource file format.

Resource forks are usually invisible to the end-user on a Mac platform, but when Mac files are placed in a medium where users of other operating systems can see them (e.g., Windows), they are often visible as an additional subdirectory called resource.frk, or else a name with an underscore (_) as its first character (e.g., _MACOSX for OS X files) containing subdirectories and files that parallel the structure of the files they are associated with.

Later (Unix-based) Mac systems used AppleSingle and AppleDouble formats instead of the "classic" resource fork format when using filesystems not supporting direct use of resource forks. This usage continues in some OS X filesystems.

Other methods of storing a resource fork on a foreign filesystem include MacBinary and BinHex.

References

See also Macintosh resource file#References.

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox