Kristina Brooks Kristina Brooks - 11 months ago 84
Objective-C Question

Determining what a CFTypeRef is?

I have a function which returns CFTypeRef. I have no idea what it really is. How do I determine that? For example it might be a CFStringRef.

Answer Source


if (CFGetTypeID(myObjectRef) == CFStringGetTypeID()) {
  //i haz a string