CFCopyTypeIDDescriptionHeader: CFBase.h

Returns a description of a Core Foundation type, as identified by its type ID. You can use this function for debugging purposes.

CFStringRef CFCopyTypeIDDescription (
    CFTypeID theType
);
theType

An integer of type CFTypeID. Pass the type ID that uniquely identifies a Core Foundation opaque type. You can obtain this identifier with the CFGetTypeID function or with type-specific functions of the form CFCFTypeGetTypeID

function result

A reference value of type CFStringRef that refers to the CFString object containing the description.

DISCUSSION

The CFCopyTypeIDDescription function returns a string object which you can print to get a description of a Core Foundation opaque type.

You can use the CFCopyTypeIDDescription function for debugging Core Foundation objects in your code. Use an appropriate function in String Services to "extract" the character string contained in the returned description. Then print this string to a suitable console or output device.

Do not create dependencies in your code on the content or format of the information returned by CFCopyTypeIDDescription. The descriptions could change in a later release.


© 1999 Apple Computer, Inc. — (Last Updated 9/15/99)