Type Method

listDescriptor

Creates and initializes an empty list descriptor.

Declaration

+ (NSAppleEventDescriptor *)listDescriptor;

Return Value

An empty list descriptor, or nil if an error occurs.

Discussion

A list descriptor is a descriptor whose data consists of one or more descriptors. You can add items to the list by calling insertDescriptor:atIndex: or remove them with removeDescriptorAtIndex:.

Invoking this method is equivalent to allocating an instance of NSAppleEventDescriptor and invoking initListDescriptor.

See Also

Creating and Initializing Descriptors

+ appleEventWithEventClass:eventID:targetDescriptor:returnID:transactionID:

Creates a descriptor that represents an Apple event, initialized according to the specified information.

+ descriptorWithBoolean:

Creates a descriptor initialized with type typeBoolean that stores the specified Boolean value.

+ descriptorWithDescriptorType:bytes:length:

Creates a descriptor initialized with the specified event type that stores the specified data (from a series of bytes).

+ descriptorWithDescriptorType:data:

Creates a descriptor initialized with the specified event type that stores the specified data (from an instance of NSData).

+ descriptorWithEnumCode:

Creates a descriptor initialized with type typeEnumerated that stores the specified enumerator data type value.

+ descriptorWithInt32:

Creates a descriptor initialized with Apple event type typeSInt32 that stores the specified integer value.

+ descriptorWithString:

Creates a descriptor initialized with type typeUnicodeText that stores the text from the specified string.

+ descriptorWithTypeCode:

Creates a descriptor initialized with type typeType that stores the specified type value.

+ nullDescriptor

Creates and initializes a descriptor with no parameter or attribute values set.

+ recordDescriptor

Creates and initializes a descriptor for an Apple event record whose data has yet to be set.

- initListDescriptor

Initializes a newly allocated instance as an empty list descriptor.

- initRecordDescriptor

Initializes a newly allocated instance as a descriptor that is an Apple event record.

- initWithAEDescNoCopy:

Initializes a newly allocated instance as a descriptor for the specified Carbon AEDesc structure.

- initWithDescriptorType: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).

- initWithDescriptorType:data:

Initializes a newly allocated instance as a descriptor with the specified descriptor type and data (from an instance of NSData).

- initWithEventClass:eventID:targetDescriptor:returnID:transactionID:

Initializes a newly allocated instance as a descriptor for an Apple event, initialized with the specified values.