Instance Method

setDescriptor:forKeyword:

Adds a descriptor, identified by a keyword, to the receiver.

Declaration

- (void)setDescriptor:(NSAppleEventDescriptor *)descriptor forKeyword:(AEKeyword)keyword;

Parameters

descriptor

The descriptor to add to the receiver.

keyword

A keyword (a four-character code) that identifies the descriptor to add. If a descriptor with that keyword already exists in the receiver, it is replaced.

Discussion

The receiver must be an Apple event or Apple event record. Currently provides no indication if an error occurs.

See Also

Working With Record Descriptors

- descriptorForKeyword:

Returns the receiver’s descriptor for the specified keyword.

- keywordForDescriptorAtIndex:

Returns the keyword for the descriptor at the specified (one-based) position in the receiver.

- removeDescriptorWithKeyword:

Removes the receiver’s descriptor identified by the specified keyword.