setObject(const OSString *, const OSMetaClassBase *)
Stores an object in the dictionary under a key.
Declaration
virtual bool setObject(
const OSString *aKey,
const OSMetaClassBase *anObject);Parameters
- aKey:
An OSString identifying the object placed within the dictionary.
- anObject:
The object to be stored in the dictionary. It is automatically retained.
Return Value
true if the addition was successful, false otherwise.
Overview
An OSSymbol for aKey is created internally. An object already stored under aKey is released.
See Also
Miscellaneous
copyCollectionensureCapacityflushCollectionfreegetCapacitygetCapacityIncrementgetCountgetObjectgetObject(const OSString *)getObject(const OSSymbol *)initWithCapacityinitWithDictionaryinitWithObjects(const OSObject *, const OSString *, unsigned int, unsigned int)initWithObjects(const OSObject *, const OSSymbol *, unsigned int, unsigned int)isEqualToisEqualTo(const OSDictionary *)isEqualTo(const OSDictionary *, const OSCollection *)mergeremoveObjectremoveObject(const OSString *)removeObject(const OSSymbol *)serializesetCapacityIncrementsetObjectsetObject(const OSSymbol *, const OSMetaClassBase *)withCapacitywithDictionarywithObjects(const OSObject *, const OSString *, unsigned int, unsigned int)withObjects(const OSObject *, const OSSymbol *, unsigned int, unsigned int)