init(descriptorType:data:)
Initializes a newly allocated instance as a descriptor with the specified descriptor type and data (from an instance of NSData).
Declaration
convenience init?(descriptorType: DescType, data: Data?)Parameters
- descriptorType:
The descriptor type to be set in the initialized descriptor.
- data:
The data to be set in the initialized descriptor.
Return Value
An instance of NSAppleEventDescriptor with the specified type and data. Returns nil if an error occurs.
See Also
Creating and Initializing Descriptors
appleEvent(withEventClass:eventID:targetDescriptor:returnID:transactionID:)init(boolean:)init(enumCode:)init(int32:)init(string:)init(typeCode:)list()null()record()init(listDescriptor:)init(recordDescriptor:)init(aeDescNoCopy:)init(descriptorType:bytes:length:)init(eventClass:eventID:targetDescriptor:returnID:transactionID:)