• 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
Re: Toll-free bridging, say for NSDictionary and CFDictionary.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Toll-free bridging, say for NSDictionary and CFDictionary.


  • Subject: Re: Toll-free bridging, say for NSDictionary and CFDictionary.
  • From: Greg Parker <email@hidden>
  • Date: Fri, 21 Aug 2009 14:21:44 -0700

On Aug 21, 2009, at 7:56 AM, email@hidden wrote:
We can dig into http://www.opensource.apple.com/source/CF/CF-476.19/CFDictionary.c and sure enough we find buckets being probed.
But what does this tell us about NSDictionary?


Yes, we know it's toll-free bridged to CFDictionary but does that imply total equivalence at both the data structure and method/ algorithm level?

Does NSDictionary merely defer to CFDictionary for all its functionality or or they functionally distinct, ie: is NSDictionary implemented via calls to CFDictionary?

Is the answer to the above question true for all toll-free bridged Cocoa classes?

It's complicated. Some toll-free bridged classes share a single implementation, with a thin wrapper on the other side of the bridge. Other toll-free bridged classes have two separate implementations. All of these have changed in the past and probably will change in the future.



-- Greg Parker email@hidden Runtime Wrangler


_______________________________________________

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


References: 
 >Toll-free bridging, say for NSDictionary and CFDictionary. (From: "email@hidden" <email@hidden>)

  • Prev by Date: Re: Table view with multiple columns
  • Next by Date: Wait until volume is mounted?
  • Previous by thread: Re: Toll-free bridging, say for NSDictionary and CFDictionary.
  • Next by thread: CoreData: Using to-may relationships in fetch request predicates
  • Index(es):
    • Date
    • Thread