Instance Method

removeValue(at:fromPropertyWithKey:)

Removes the object at the specified index from the collection specified by the passed key.

Declaration

func removeValue(at index: Int, fromPropertyWithKey key: String)

Discussion

The method removeFrom<Key>AtIndex: is invoked if it exists. If no corresponding scripting-KVC-compliant method (-removeFrom<Key>AtIndex:) is found, this method invokes -mutableArrayValueForKey: and mutates the result.

See Also

Indexed access

func insertValue(Any, at: Int, inPropertyWithKey: String)

Inserts an object at the specified index in the collection specified by the passed key.

func replaceValue(at: Int, inPropertyWithKey: String, withValue: Any)

Replaces the object at the specified index in the collection specified by the passed key.

func value(at: Int, inPropertyWithKey: String) -> Any?

Retrieves an indexed object from the collection specified by the passed key.