Contents

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