Defined Types

Beta documentation : This document has not received a full technical review and therefore might contain inaccuracies.



CFArrayApplierFunction

typedef void (*CFArrayApplierFunction)(void *val, void *context);

Type of the callback applier function passed into the CFArrayApplyFunction function.


CFArrayCallBacks

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.

Fields

NameDescription
versionThe version number of the structure passed in as a parameter to a CFArray creation function. The current version is 0.
retainA 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.
releaseThe 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.
copyDescriptionThe callback invoked to create a descriptive string representation of each value in the array. This callback is invoked by the CFCopyDescription function.
equalThe callback invoked to compare values in the array to determine equality for some operations.

CFArrayRef

typedef  const  struct  __CFArray*  CFArrayRef;

The type of a reference to an immutable CFArray object.


CFMutableArrayRef

typedef  struct  __CFArray*  CFMutableArrayRef;

The type of a reference to a mutable CFArray object.


© 1999 Apple Computer, Inc. — (Last Updated 9/17/99)