Returns a code that can be used to identify an object in a hashing structure.


CFHashCode CFHash(CFTypeRef cf);



A CFType object to examine.

Return Value

An integer of type CFHashCode that represents a hashing value for cf.


Two objects that are equal (as determined by the CFEqual function) have the same hashing value. However, the converse is not true: two objects with the same hashing value might not be equal. That is, hashing values are not necessarily unique.

The hashing value for an object might change from release to release or from platform to platform.

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