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 File Reference Resource

To link icons with the files types they represent and to allow users to launch your application by dragging document icons to your application icon, create a file reference resource for every icon list resource you create. A file reference resource is a resource with the resource type 'FREF'. All file reference resources must have resource IDs greater than 128, and each must be marked purgeable.

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

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

Figure 7-24 Structure of a compiled file reference ('FREF') resource


Previous Book Contents Book Index Next

© Apple Computer, Inc.
11 JUL 1996