Function

CFSetAddValue

Adds a value to a CFMutableSet object.

Declaration

void CFSetAddValue(CFMutableSetRef theSet, const void *value);

Parameters

theSet

The set to modify.

value

A CFType object or a pointer value to add to theSet (or the value itself, if it fits into the size of a pointer).

value is retained by theSet using the retain callback provided when theSet was created. If value is not of the type expected by the retain callback, the behavior is undefined. If value already exists in the collection, this function returns without doing anything.

See Also

CFMutableSet Miscellaneous Functions

CFSetCreateMutable

Creates an empty CFMutableSet object.

CFSetCreateMutableCopy

Creates a new mutable set with the values from another set.

CFSetRemoveAllValues

Removes all values from a CFMutableSet object.

CFSetRemoveValue

Removes a value from a CFMutableSet object.

CFSetReplaceValue

Replaces a value in a CFMutableSet object.

CFSetSetValue

Sets a value in a CFMutableSet object.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software