Contents

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