Bundle (macOS)
In NeXTSTEP, OPENSTEP, and their lineal descendants macOS, iOS, iPadOS, tvOS, watchOS, and visionOS, and in GNUstep, a bundle is a file directory with a defined structure and file extension, allowing related files to be grouped together as a conceptually single item. Examples of bundles that contain executable code include applications, frameworks, and plugins. This kind of bundle usually contains one file representing executable code, and files that represent resources such as nibs, templates, images, sounds, and other media. On some other systems, such as Microsoft Windows, these resources are usually included directly in the executable file itself at compile time. On older Macintoshes, a similar technique is used, where additional metadata can be added to a file's resource fork. Similar in concept are the application directories used in RISC OS and on the ROX Desktop. Examples of bundles that do not contain executable code include document packages (iWork documents) and media libraries (iPhoto Library). Bundles are programmatically accessed with the Application bundles
Application bundles are directory hierarchies, with the top-level directory having a name that ends with a In a macOS application bundle, the first directory in the bundle underneath the top-level directory is usually named Among other things, the Other common subdirectories include By default, the Finder displays application bundles, which can also be referred to as packages, as opaque files with no underlying structure; the contents of the bundle can be shown with the "Show Package Contents" context menu item. GNUstep by default uses the name of the application to name the folder that contains application code. An alternative is to name them by the computer architecture and OS the code is intended for to form a fat binary, so the application can be opened on many platforms.[4][5] macOS framework bundles
macOS frameworks are also stored as bundles;[6] the top-level directory of a framework bundle has a name that is the name of the framework followed by the extension The Finder displays framework bundles as directories rather than as opaque files. Although GNUstep uses frameworks, they are not usually stored as bundles. This is because the full semantics of framework loading are considered too alien to other platforms.[8] Loadable bundlesLoadable bundles are bundles which contain code that can be loaded at runtime.[9] Loadable bundles usually have the extension By default, the Finder displays loadable bundles, which can also be referred to as packages, as opaque files with no underlying structure; the contents of the bundle can be shown with the "Show Package Contents" context menu item. Other bundle formatsThere are many macOS applications which utilize their own custom bundle format (e.g. CandyBar .lprojAn .lproj file is a bundle that contains localization files for OpenStep, macOS, or GNUstep software. It typically contains the See also
References
External links
|