Legacy Documentclose button

Important: The information in this document is obsolete and should not be used for new development.

Previous Book Contents Book Index Next

Inside Macintosh: Macintosh Toolbox Essentials /
Chapter 7 - Finder Interface / Finder Interface Reference
Resources


The Bundle Resource

To group together your application's signature, icon list resource, and file reference resources, create a bundle resource. A bundle resource is a resource with the resource type 'BNDL'. All bundle resources must have resource ID numbers greater than 128,
and all must be made purgeable.

This section describes the structure of the bundle resource after it is compiled by the Rez resource compiler. The format of a Rez input file for a bundle resource differs from its compiled output form. If you are concerned only with creating a bundle resource, see "Creating a Bundle Resource" beginning on page 7-19.

Figure 7-25 Structure of a compiled bundle ('BNDL') resource

If you examine a compiled version of a file reference resource, as illustrated in
Figure 7-25, you find that it contains the following elements:

If you examine the compiled portion of a bundle resource that maps local IDs to icon list resource IDs, you find that it contains the following elements:

Figure 7-26 Mapping local IDs to icon list resource IDs in a bundle resource

Figure 7-27 illustrates the remainder of a bundle resource, which assigns local IDs to
file reference resource IDs. This assignment is superfluous because the Finder doesn't map these local IDs to any other resources. This ID assignment was implemented for
the earliest versions of Macintosh system software, and it remains this way today to maintain backward compatibility.

Figure 7-27 Structure of superfluous local ID mapping for file reference resources in a
bundle resource

If you examine the compiled portion of the remainder of a bundle resource, you find that it contains the following elements:


Previous Book Contents Book Index Next

© Apple Computer, Inc.
11 JUL 1996