Package (macOS)

{{Infobox file format

| name = package

| logo =

| icon =

| iconcaption =

| screenshot =

| caption =

| extension =

| mime =

| type code =

| uniform type = com.apple.package

| conforms to = public.directory

| magic =

| owner =

| released =

| latest release version =

| latest release date =

| genre =

| container for = documents, bundles

| contained by =

| extended from =

| extended to =

| standard =

| free =

| url =

}}

In the Apple macOS operating system, a package is a file system directory that is normally displayed to the user by the Finder as if it were a single file. {{cite web|title=About Bundles|work=Bundle Programming Guide|url=https://developer.apple.com/library/mac/#documentation/CoreFoundation/Conceptual/CFBundles/AboutBundles/AboutBundles.html#//apple_ref/doc/uid/10000123i-CH100-SW1|publisher=Apple, Inc.|accessdate=2011-03-16}} Such a directory may be the top-level of a directory tree of objects stored as files, or it may be other archives of files or objects for various purposes, such as installer packages, or backup archives.

Definition

The package is a common file system abstraction used by Apple operating systems, such as macOS and iOS. It is a directory that may contain a hierarchy of files or objects that represent a preserved, organized state. A package is displayed to users like a single file in the Finder application to avoid being changed by the user. However, the content of packages may be accessed through special keyboard and mouse combination events. For this purpose, the control-click, or right-click, menu displays a directive Show Package Contents.

Some documents may be represented as packages:{{cite web|title=Document Packages|work=Bundle Programming Guide|url=https://developer.apple.com/library/mac/#documentation/CoreFoundation/Conceptual/CFBundles/DocumentPackages/DocumentPackages.html#//apple_ref/doc/uid/10000123i-CH106-SW1|publisher=Apple, Inc.|accessdate=2011-03-16}}

The Uniform Type Identifier (UTI) for a package is {{mono|com.apple.package}}.{{cite web|title=System-Declared Uniform Type Identifiers|work=Uniform Type Identifiers Reference|url=https://developer.apple.com/library/mac/#documentation/Miscellaneous/Reference/UTIRef/Articles/System-DeclaredUniformTypeIdentifiers.html#//apple_ref/doc/uid/TP40009259-SW1|publisher=Apple, Inc.|accessdate=2011-03-16}}

=Bundles=

A package that has a standardized structure for storing executable code and its associated resources, is called a bundle.

See also

References

{{reflist}}

{{Archive formats}}

Category:MacOS

Category:MacOS development