Toll-free bridge type at runtime
Toll-free bridge type at runtime
- Subject: Toll-free bridge type at runtime
- From: Ryan Joseph <email@hidden>
- Date: Thu, 2 Apr 2009 11:33:22 +0700
I'm trying to determine at runtime if a type is CoreFoundation or
Cocoa, for example NSArray/CFArray. I must use Carbon API however to
determine this before I attempt to use Cocoa methods for introspection.
My first test was to use CFGetTypeID and CFCopyTypeIDDescription but
they both returned CFArray on both Cocoa and CoreFoundation types.
Maybe some of the Objective-C runtime functions could be used? But I'm
not sure if they will crash taking CoreFoundation types for the
purpose of testing. Are there any other clever ways to get this
information? Thanks for helping.
Regards,
Josef
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden