Instance Method

insertValue:inPropertyWithKey:

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

Declaration

- (void)insertValue:(id)value inPropertyWithKey:(NSString *)key;

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

- valueWithName:inPropertyWithKey:

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

- valueWithUniqueID:inPropertyWithKey:

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