Kristina Brooks Kristina Brooks - 1 year ago 123
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
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download