• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Toll-free bridge type at runtime
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Toll-free bridge type at runtime
      • From: Michael Ash <email@hidden>
  • Prev by Date: Re: disable row highlighting NSTableView
  • Next by Date: Re: Toll-free bridge type at runtime
  • Previous by thread: Re: Seeking advice on best practice for managing visibility of many subviews
  • Next by thread: Re: Toll-free bridge type at runtime
  • Index(es):
    • Date
    • Thread