Instance Method

setReceiversSpecifier:

Sets the receiver’s object specifier;.

Declaration

- (void)setReceiversSpecifier:(NSScriptObjectSpecifier *)receiversRef;

Parameters

receiversRef

The object specifier for the receiver.

Discussion

When evaluated, the specifier indicates the receiver or receivers of the clone command.

This method overrides receiversSpecifier in NSScriptCommand. It performs the same function as the overridden method, with a critical difference: it causes the container specifier part of the passed-in object specifier to become the receiver specifier of the command, and the key part of the passed-in object specifier to become the key specifier. If, for example, receiversRef is a specifier for the third rectangle of the first document, the receiver specifier is the first document while the key specifier is the third rectangle.

See Also

Working with specifiers

keySpecifier

Returns a specifier for the object or objects to be cloned.