24. Bundles
A bundle is a collection of executable code and related resources such as images, sounds, strings, and .nib files. Ideally, bundles are able to simultaneously store multiple versions of each resource so that you can use one set of executable code with different resource versions based on the language or cultural preferences of the user. The Bundles pattern provides a mechanism for organizing and dynamically loading executable code and resources.
Like most design patterns, the Bundles pattern exists in many object-oriented development environments besides Cocoa. The Java programming language implements the Bundles pattern with JAR (Java ARchive) files that combine compiled Java classes and resources into a single compressed file in ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access