Apple event type mappings
Overview
[TO DO: finish updating this chapter]
Standard Apple event descriptor types are mapped to and from Foundation/AppleEventBridge classes as follows:
AppleScript type | Descriptor type | AEBSymbol name | Cocoa class |
---|---|---|---|
(no data) | typeNull | null | NSNull |
boolean | typeBoolean | boolean | NSNumber (equiv. CFBoolean ) |
integer | typeSInt32 | integer | NSNumber |
real | typeIEEE64BitFloatingPoint | float | NSNumber |
text [1] | typeUnicodeText | unicodeText | NSString |
list | typeAEList | list | NSArray |
record | typeAERecord | record | NSDictionary |
date | typeLongDateTime | date | NSDate |
when the corresponding terminology is available, otherwise they are unpacked as |