Contents

replaceObject

Replaces an object in an array at a given index.

Declaration

virtual void replaceObject( 
 unsigned intindex, 
 const OSMetaClassBase *anObject);

Parameters

  • index:

    The index of the object to be replaced. Must be less than the array's count.

  • anObject:

    The object to be placed into the array.

Overview

The original object is released and the new object is retained.

See Also

Miscellaneous