Is there any CoreFoundation handy way for checking a class’s pedigree like isKindOfClass?
Is there any CoreFoundation handy way for checking a class’s pedigree like isKindOfClass ?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Since CoreFoundation is based on "opaque" references, it is difficult to inspect unknown objects. There is no isa-pointer like with a normal objective-c class which you can look at in order to find out about the type of an arbitrary object. However, CF has some functions to offer that can help you: specifically, CFGetTypeID():
See CFType Reference.