Contents

init(descriptorType:bytes:length:)

Initializes a newly allocated instance as a descriptor with the specified descriptor type and data (from an arbitrary sequence of bytes and a length count).

Declaration

convenience init?(descriptorType: DescType, bytes: UnsafeRawPointer?, length byteCount: Int)

Parameters

  • descriptorType:

    The descriptor type to be set in the returned descriptor.

  • bytes:

    The data, as a sequence of bytes, to be set in the returned descriptor.

  • byteCount:

    The length, in bytes, of the data to be set in the returned 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