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 6 - Dialog Manager / Dialog Manager Reference
Resources


The Alert Resource

You can use an alert resource to define an alert. An alert resource is a resource of type 'ALRT'. All alert resources must be marked purgeable, and they must have resource ID numbers greater than 128.

To specify the items in an alert box, you must also provide an item list resource, described beginning on page 6-144. To display the alert, you call either the NoteAlert, CautionAlert, StopAlert, or Alert function and pass it the resource ID of the
alert resource. The NoteAlert, CautionAlert, StopAlert, and Alert functions
are described in "Creating Alerts" beginning on page 6-99.

The format of a Rez input file for an alert resource differs from its compiled output format. This section describes the structure of a Rez-compiled alert resource. If you are concerned only with creating an alert resource, see "Creating Alert Sounds and Alert Boxes" beginning on page 6-18.

Figure 6-43 shows the structure of a compiled alert resource.

Figure 6-43 Structure of a compiled alert ('ALRT') resource

The compiled version of an alert resource contains the following elements:


Previous Book Contents Book Index Next

© Apple Computer, Inc.
11 JUL 1996