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.