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: Interapplication Communication /
Chapter 8 - Apple Event Terminology Resources / Reference to Apple Event Terminology Resources
Suite Data for an Apple Event Terminology Resource


Object Class Data

Each item in the array of object classes for a suite includes information about the class and arrays that specify the properties and elements for that class. Figure 8-6 shows the format of the object class data in an 'aeut' or 'aete' resource.

Figure 8-6 Structure of object class data in an 'aeut' or 'aete' resource

The data for each object class consists of the following items:

To define characteristics of an object class (for instance, whether an object of that class is a single item or a list of items, whether it is singular or plural, and so on), your application's 'aete' resource must define a special property of property ID kAESpecialClassProperties as the first property in the array of properties. Because object class data does not include flag bits, the flag bits of this property are used to specify attributes for the class to which the property belongs. The next section describes how this property is defined and used.

Property Data

Each item in the array of properties for an object class includes information about a single property. Figure 8-7 shows the format of the property data in an 'aeut' or 'aete' resource.

Figure 8-7 Structure of property data in an 'aeut' or 'aete' resource

The data for each property consists of the following items:

"Extending the Standard Suites," which begins on page 8-21, includes sample Rez input for an 'aete' resource that adds a new property to a standard object class.

The array of properties in an 'aeut' resource begins with a definition of a special property that describes characteristics of the class as a whole using the flags in the definition of that property. A property used in this way to define characteristics of a class must be defined first in the array of properties for that class and must specify kAESpecialClassProperties ('c@#!') as the property ID, cType as the property class, and an empty string for the property name and property description. If you don't define such a property for a class in your application's 'aete' resource, the scripting component will assign that class the default values specified by the first constant for each flag bit in the Rez declaration for the 'aeut' resource. (See Listing 8-1, which begins on page 8-14, for the 'aeut' resource type declaration.)

Element Class Data

Each item in the array of elements for an object class includes information about a single element class and an array of key forms for that element class. Figure 8-8 shows the format of the object class data in an 'aeut' or 'aete' resource.

Figure 8-8 Structure of element class data in an 'aeut' or 'aete' resource

The following statements are included for each element class in the array of element classes for an object class:

No names or descriptions are provided for element classes, because elements are specified by their object classes, and the declaration of each object class includes the name and description of the class.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
7 JUL 1996