CFSetCreate |
||||
Header: | CFSet.h | Carbon status: | Supported | |
Creates an immutable CFSet object containing the supplied values.
CFSetRef CFSetCreate ( CFAllocatorRef allocator, void **values, CFIndex numValues, const CFSetCallBacks *callBacks );
Pass the CFAllocator object to be used to allocate memory for the set and for the storage of its values. If you want to use the current default allocator, pass NULL.
Pass a pointer to a C array containing the values to put into the created CFSet object. The items in the C arrray must be pointers or pointer-size values. The C array is not changed or freed by the function. If values is not a valid pointer to a C array of at least numValues elements, the behavior is undefined.
he number of values to copy from the values C array in the CFSet. If the number is negative or is greater than the actual number of values, the behavior is undefined.
Pass a pointer to a CFSetCallBacks structure initialized with the callbacks to use to retain, release, describe, and compare values in the CFSet object. See CFSetCallBacks for information on the fields of this structure
A reference to an immutable CFSet object or NULL if there was a problem creating the object.
The CFSetCreate function creates an immutable CFSet object from a C array containing pointers to values (or values if they are pointer size or smaller). The numValues parameter specifies the count of the values in the set. If this value is less than the actual number of values in the array, only that many values are copied. If this value is more than the actual number of values in the C array, the behavior is undefined.
Supported in Carbon. Available in Carbon 1.0.2 and later.
© 2000 Apple Computer, Inc. (Last Updated 6/30/2000)