typedef void (*CFArrayApplierFunction)(void *val, void *context);
Type of the callback applier function passed into the CFArrayApplyFunction function.
struct CFArrayCallBacks { CFIndex version; CFArrayRetainCallBack retain; CFArrayReleaseCallBack release; CFArrayCopyDescriptionCallBack copyDescription; CFArrayEqualCallBack equal; }; typedef struct CFArrayCallBacks CFArrayCallBacks;
A structure containing pointers to the callback functions required to create a CFArray object.
Name Description version The version number of the structure passed in as a parameter to a CFArray creation function. The current version is 0. retain A pointer to the callback invoked to retain values as they are put into the array. This callback returns the value to store in the array, which is usually the value passed to this callback, but could be a different value if that is the value that should be stored in the array. The CFArray object's allocator is passed as the first parameter of the callback. release The callback invoked to reverse the effect of the retain callback on values as they are removed from the array.The CFArray obejct's allocator is passed as the first parameter of the callback. copyDescription The callback invoked to create a descriptive string representation of each value in the array. This callback is invoked by the CFCopyDescription function. equal The callback invoked to compare values in the array to determine equality for some operations.
typedef const struct __CFArray* CFArrayRef;
The type of a reference to an immutable CFArray object.
typedef struct __CFArray* CFMutableArrayRef;
The type of a reference to a mutable CFArray object.
© 1999 Apple Computer, Inc. (Last Updated 9/17/99)