Instance Method

isLocationRequiredToCreateForKey:

Returns a Boolean value indicating whether an insertion location must be specified when creating a new object in the specified to-many relationship of the receiver.

Declaration

- (BOOL)isLocationRequiredToCreateForKey:(NSString *)toManyRelationshipKey;

Parameters

toManyRelationshipKey

The key for the to-many relationship that may require an insertion location.

Return Value

YES if an insertion location must be specified; otherwise, NO.

Discussion

A script command object that creates a new object in a to-many relationship needs to know whether an explicitly specified insertion location is required. It can get this information from an instance of NSScriptClassDescription. For example, NSMakeCommand uses this method to determine whether or not a specific make AppleScript command must have an at parameter.

See Also

Getting basic information about the script class

className

Returns the name of the class the receiver describes, as provided at initialization time.

defaultSubcontainerAttributeKey

Returns the value of the DefaultSubcontainerAttribute entry of the class dictionary from which the receiver was instantiated.

implementationClassName

Returns the name of the Objective-C class instantiated to implement the scripting class.

suiteName

Returns the name of the receiver’s suite.