replaceObject
Removes a current member of the array and replaces it with another object.
Declaration
bool replaceObject(uint32_t index, const OSMetaClassBase *anObject);Parameters
- index:
Zero based index less than the array count to add the object.
- anObject:
Object to be added to the array.
Return Value
True on success, which retains the added object and releases the current member, or false on failure which does not retain the object and leaves the current member.