CFDictionaryValueCallBacks

Header: CFDictionary.h

struct CFDictionaryValueCallBacks {
    CFIndex version; 
    CFDictionaryRetainCallBack retain; 
    CFDictionaryReleaseCallBack release; 
    CFDictionaryCopyDescriptionCallBack copyDescription; 
    CFDictionaryEqualCallBack equal;
};

Field descriptions

version
retain

The callback used to add a retain for the dictionary on values as they are put into the dictionary. This callback returns the value to use as the value in the dictionary, which is usually the value parameter passed to this callback, but may be a different value if a different value should be added to the dictionary. The dictionary's allocator is passed as the first argument.

release

The callback used to remove a retain previously added for the dictionary from values as they are removed from the dictionary. The dictionary's allocator is passed as the first argument.

copyDescription

The callback used to create a descriptive string representation of each value in the dictionary. This is used by the CFCopyDescription() function.

equal

The callback used to compare values in the dictionary for equality in some operations.

Structure containing the callbacks for values of a CFDictionary.


© 2000 Apple Computer, Inc. (Last Updated 6/30/2000)