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 Version Resource

You can use a version resource in any file so that users can easily find out the version of the file and, if it is a part of a larger collection of files, of the entire superset of files. A version resource is a resource with the resource type 'vers'. The version resource
with a resource ID number of 1 specifies the version of an individual file; the version resource with a resource ID number of 2 specifies the superset of files to which the individual file belongs.

If your application does not contain a version resource with a resource ID number of 1, the Finder displays the string from your application's signature resource (described
in "Giving a Signature to Your Application and a Creator and a File Type to Your Documents" beginning on page 7-7) in the information window when the user chooses the Get Info command from the File menu.

This section describes the structure of this resource after it is compiled by the Rez resource compiler. The format of a Rez input file for a version resource differs from its compiled output form. If you are concerned only with creating version resources, see "Providing Version Resources" beginning on page 7-29.

If you examine a compiled version of version resource, as illustrated in Figure 7-30 on page 7-65, you find that it contains the following elements:

Figure 7-30 Format of a compiled version ('vers') resource


Previous Book Contents Book Index Next

© Apple Computer, Inc.
11 JUL 1996