init(enumCode:)
Creates a descriptor initialized with type typeEnumerated that stores the specified enumerator data type value.
Declaration
init(enumCode enumerator: OSType)Parameters
- enumerator:
A type code that identifies the type of enumerated data to be stored in the returned descriptor.
Return Value
A descriptor with the specified enumerator data type value, or nil if an error occurs.
See Also
Creating and Initializing Descriptors
appleEvent(withEventClass:eventID:targetDescriptor:returnID:transactionID:)init(boolean:)init(int32:)init(string:)init(typeCode:)list()null()record()init(listDescriptor:)init(recordDescriptor:)init(aeDescNoCopy:)init(descriptorType:bytes:length:)init(descriptorType:data:)init(eventClass:eventID:targetDescriptor:returnID:transactionID:)