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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to