Instance Method

initWithContainerClassDescription:containerSpecifier:key:index:

Initializes an allocated NSIndexSpecifier object with a class description, container specifier, collection key, and object index.

Declaration

- (instancetype)initWithContainerClassDescription:(NSScriptClassDescription *)classDesc containerSpecifier:(NSScriptObjectSpecifier *)container key:(NSString *)property index:(NSInteger)index;

Parameters

classDescription

Description for the container of the collection.

containerSpecifier

Container of the collection.

collectionKey

Name of the collection.

objectIndex

The object within the key collection the index specifier is to identify.

Return Value

Initialized NSIndexSpecifier object with its index property set to objectIndex.

Discussion

Invokes the super class’s initWithContainerClassDescription:containerSpecifier:key: method and sets the index property of the index specifier to objectIndex.

See Also