Contents

setObject

Stores an object in the dictionary under a key.

Declaration

virtual bool setObject( 
 const char *aKey, 
 const OSMetaClassBase *anObject);

Parameters

  • aKey:

    A C string 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