descriptorWithDescriptorType:bytes:length:
Creates a descriptor initialized with the specified event type that stores the specified data (from a series of bytes).
Declaration
+ (NSAppleEventDescriptor *) descriptorWithDescriptorType:(DescType) descriptorType bytes:(const void *) bytes length:(NSUInteger) byteCount;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
A descriptor with the specified type and data, or nil if an error occurs.
See Also
Creating and Initializing Descriptors
appleEvent(withEventClass:eventID:targetDescriptor:returnID:transactionID:)init(boolean:)descriptorWithDescriptorType:data:init(enumCode:)init(int32:)init(string:)init(typeCode:)list()null()record()init(listDescriptor:)init(recordDescriptor:)init(aeDescNoCopy:)init(descriptorType:bytes:length:)init(descriptorType:data:)