Re: Toll Free Bridging, wrapping the SearchKit, and One-Way Bridging
Re: Toll Free Bridging, wrapping the SearchKit, and One-Way Bridging
- Subject: Re: Toll Free Bridging, wrapping the SearchKit, and One-Way Bridging
- From: Simon Stapleton <email@hidden>
- Date: Sat, 6 Dec 2003 20:42:48 +0100
From: Finlay Dobbie <email@hidden>
Subject: Re: Toll Free Bridging, wrapping the SearchKit, and One-Way
Bridging
Date: Thu, 4 Dec 2003 23:44:16 +0000
To: Scott Anguish <email@hidden>
On 4 Dec 2003, at 06:16, Scott Anguish wrote:
Second, there isn't a gain. When Apple toll-free bridges something
in CF, there is a gain because Apple doesn't need to write and test a
second set of APIs, we don't need to doc them, and it's more
straightforward. You're writing the second set of APIs yourself, so
you gain nothing.
The APIs, yes, you write yourself. But the underlying implementation
is 'for free'. So you _do_ gain something. For example, in bridging
CFXML, I got access to an existing (read 'installed as a part of OSX')
framework in ObjC, as opposed to having to use nasty Carbon stuff or
having to install (for example) expat + objc libraries written by
someone else.[1][2]
Third, toll-free bridging is implemented using ugly hacks. If you want
to be scared, take a look at some of the CF source.
Oh, indeed. Be afraid. Be _very_ afraid.[3]
Simon
[1] It's rare that I disagree with anything Scott posts, but this is
one of those days...
[2] However, expat + other stuff is probably more usable. C'est la
vie. C'est aussi mon probleme a moi ;-)
[3] ObPlug - Head off to
<
http://www.tufty.co.uk/Software/objectware.html> to look at how I did
it for CFXML. It's nasty. It's ugly. It's BSD licensed. It's
relatively generic. It probably won't work under Panther. Or anything
later than 10.2.2. Do with it as you will.
--
PGP Key Id : 0x50D0698D
--
Well, we finally have an indoor toilet. But what new disasters have
struck the Alpenproject?
Find out at : <
http://www.tufty.co.uk/Move/index.html>
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.