Re: Toll-free bridging, say for NSDictionary and CFDictionary.
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