CFTypeRef
An untyped “generic” reference to any Core Foundation object.
Declaration
typealias CFTypeRef = AnyObjectDiscussion
All other Core Foundation opaque types derive from CFTypeRef. The functions, callbacks, data types, and constants defined for CFType can be used by any derived opaque type. Hence, CFTypeRef functions are referred to as “polymorphic functions.” You use CFTypeRef functions to retain and release objects, to compare and inspect objects, get descriptions of objects and opaque types, and to get object allocators.
Topics
Memory Management
Determining Equality
Hashing
Miscellaneous Functions
Data Types
See Also
Related Documentation
- Memory Management Programming Guide for Core Foundation
- Core Foundation Design Concepts