Initializer

init(containerClassDescription:containerSpecifier:key:index:)

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

Declaration

init(containerClassDescription classDesc: NSScriptClassDescription, containerSpecifier container: NSScriptObjectSpecifier?, key property: String, index: Int)

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 init(containerClassDescription:containerSpecifier:key:) method and sets the index property of the index specifier to objectIndex.

See Also