CFDictionaryApplyFunction

Header: CFDictionary.h Carbon status: Supported

Calls a function once for each value in the dictionary.

void CFDictionaryApplyFunction (
    CFDictionaryRef dict, 
    CFDictionaryApplierFunction applier, 
    void *context
);
Parameter descriptions
dict

The dictionary to be queried. If this parameter is not a valid CFDictionary, the behavior is undefined.

applier

The callback function to call once for each value in the dictionary. If this parameter is not a pointer to a function of the correct prototype, the behavior is undefined. If there are keys or values which the applier function does not expect or cannot properly apply to, the behavior is undefined.

context

A pointer-sized user-defined value, which is passed as the third parameter to the applier function, but is otherwise unused by this function. If the context is not what is expected by the applier function, the behavior is undefined.

AVAILABILITY

Supported in Carbon. Available in Carbon 1.0.2 and later.


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