Bundle file (OS X)

From Just Solve the File Format Problem
(Difference between revisions)
Jump to: navigation, search
(Links)
Line 8: Line 8:
  
 
Some bundle files have an internal structure with subdirectories within them, while others have a flat structure with all their files in the "root" directory within them.
 
Some bundle files have an internal structure with subdirectories within them, while others have a flat structure with all their files in the "root" directory within them.
 +
 +
An application registers a key with the Finder so it can treat the package as a file. "The CFBundleDocumentTypes key stores information about the document types your application supports. For each document package type, include the LSTypeIsPackage key with an appropriate value. The presence of this key tells the Finder and Launch Services to treat directories with the given file extension as a package."<ref>https://developer.apple.com/library/archive/documentation/CoreFoundation/Conceptual/CFBundles/DocumentPackages/DocumentPackages.html</ref>
  
 
== Links ==
 
== Links ==
Line 15: Line 17:
 
* [https://developer.apple.com/library/archive/documentation/CoreFoundation/Conceptual/CFBundles/Introduction/Introduction.html Bundle Programming Guide]
 
* [https://developer.apple.com/library/archive/documentation/CoreFoundation/Conceptual/CFBundles/Introduction/Introduction.html Bundle Programming Guide]
 
* [https://eclecticlight.co/2018/03/07/common-packages-documents-which-are-folders-in-drag/ Common packages: documents which are folders in drag]
 
* [https://eclecticlight.co/2018/03/07/common-packages-documents-which-are-folders-in-drag/ Common packages: documents which are folders in drag]
 +
 +
==References==
 +
<references/
  
 
[[Category:Apple]]
 
[[Category:Apple]]
 
[[Category:Macintosh]]
 
[[Category:Macintosh]]
 
[[Category:Apple bundle files| ]]
 
[[Category:Apple bundle files| ]]

Revision as of 21:51, 29 September 2020

File Format
Name Bundle file (OS X)
Ontology
Extension(s) .bundle

An OS X bundle file is actually a directory (folder), but the Mac Finder treats it like a single file. This concept of treating a directory as a file is used commonly in OS X (and iOS) file formats, in preference over the earlier system of using resource forks to attach related items to a file. Various special-purpose "bundles" of this sort exist with a number of different file extensions, such as .app for iOS apps. General-purpose bundles can have a .bundle extension, and some are used in the System and Library directories of OS X. The purpose is to group related files together and treat them as a unit when the user is installing, copying, and moving them, while they remain individually accessible by the programs needing to use them.

Some bundle files have an internal structure with subdirectories within them, while others have a flat structure with all their files in the "root" directory within them.

An application registers a key with the Finder so it can treat the package as a file. "The CFBundleDocumentTypes key stores information about the document types your application supports. For each document package type, include the LSTypeIsPackage key with an appropriate value. The presence of this key tells the Finder and Launch Services to treat directories with the given file extension as a package."[1]

Links

References

<references/


Cite error: <ref> tags exist, but no <references/> tag was found
Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox