setObject(const OSSymbol *, const OSMetaClassBase *)
Stores an object in the dictionary under a key.
Declaration
virtual bool setObject(
const OSSymbol *aKey,
const OSMetaClassBase *anObject);Parameters
- aKey:
An OSSymbol identifying the object placed within the dictionary. It is automatically retained.
- 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 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 OSString *, const OSMetaClassBase *)withCapacitywithDictionarywithObjects(const OSObject *, const OSString *, unsigned int, unsigned int)withObjects(const OSObject *, const OSSymbol *, unsigned int, unsigned int)