Contents

setObject

Sets an object as the member of the array at a given index.

Declaration

bool setObject(uint32_t index, const OSMetaClassBase *anObject);

Parameters

  • index:

    Zero based index less than or equal to the array count to add the object.

  • anObject:

    Object to be added to the array.

Return Value

True on success, which retains the object, or false on failure which does not retain the object.

Discussion

Sets an object as the member of the array at a given index. The array capacity will be grown if necessary.

See Also

Accessing Elements