Instance Method

insertValue(_:inPropertyWithKey:)

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

Declaration

func insertValue(_ value: Any, inPropertyWithKey key: String)

Discussion

The method insertIn<Key>: is used if it exists. Otherwise, raises an NSUndefinedKeyException. This is part of Cocoa’s scripting support for inserting newly-created objects into containers without explicitly specifying a location.

See Also

Access by name, key, or ID

func value(withName: String, inPropertyWithKey: String)

Retrieves a named object from the collection specified by the passed key.

func value(withUniqueID: Any, inPropertyWithKey: String)

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