CFArraySetValueAtIndex |
||||
Header: | CFArray.h | Carbon status: | Supported | |
Changes the value with the given index in the array.
void CFArraySetValueAtIndex ( CFMutableArrayRef theArray, CFIndex idx, const void *value );
The array in which the value is to be changed. If this parameter is not a valid mutable CFArray, the behavior is undefined. If the array is a fixed-capacity array and it is full before this operation and the index is the same as N, the behavior is undefined.
The index to which to set the new value. If the index is outside the index space of the array (0 to N inclusive, where N is the count of the array before the operation), the behavior is undefined. If the index is the same as N, this function has the same effect as CFArrayAppendValue().
The value to set in the array. The value is retained by the array using the retain callback provided when the array was created, and the previous value with that index is released. If the value is not of the sort expected by the retain callback, the behavior is undefined. The indices of other values is not affected.
Supported in Carbon. Available in Carbon 1.0.2 and later.
© 2000 Apple Computer, Inc. (Last Updated 6/30/2000)