Carbon


Numeric Descriptor Type Constants

Header: AEDataModel.h

Specify types for numeric descriptor records.

enum {
    typeSInt16 = 'shor',
    typeSInt32 = 'long',
    typeUInt32 = 'magn',
    typeSInt64 = 'comp',
    typeIEEE32BitFloatingPoint = 'sing',
    typeIEEE64BitFloatingPoint = 'doub',
    type128BitFloatingPoint = 'ldbl',
    typeDecimalStruct = 'decm'
};

The constants described here specify the data type for a descriptor record and show the kind of numeric data stored in a descriptor with that type.

Descriptor records are the building blocks used by the Apple Event Manager to construct Apple event attributes and parameters. A descriptor record is a data structure of type AEDesc, which consists of data storage and a descriptor type that identifies the type of the data. A descriptor type is defined by the data type DescType.

AppleScript defines descriptor type constants for a wide variety of common data types. For additional types, see “Descriptor Type Constants” and “Other Descriptor Type Constants”. For a complete listing, including data types such as units of length, weight, and volume, see the Apple Event and Scripting header files or the Mac OS Registry, a database collection of Apple Event and Scripting information distributed with AppleScript SDKs.


© 2000 Apple Computer, Inc. (Last Updated 6/30/2000)