Re: Toll-free bridge type at runtime
Re: Toll-free bridge type at runtime
- Subject: Re: Toll-free bridge type at runtime
- From: Chris Hanson <email@hidden>
- Date: Thu, 02 Apr 2009 20:26:57 -0700
On Apr 2, 2009, at 7:38 PM, Ryan Joseph wrote:
I think I need explain what exactly I need this for. I'm making a
Pascal bridge to Cocoa and it would be convenient if I could pass a
CF type or a Pascal wrapper indiscriminately and decide at runtime
how they should handled.
It's still not clear why you'd need or want this.
Bridges to Objective-C should be driven from Leopard's BridgeSupport
infrastructure, which supplies all of the class/method information you
should need for mechanically transforming whatever your language's
messaging infrastructure is into what the Objective-C runtime expects.
Once you have a basic mechanical bridge in place, then you can start
doing idiomatic things like bridging native types between your
environment and Cocoa. The Ruby & Python bridges do this with strings
and collections, for example.
I don't think a language bridge is the place to handle CF/Cocoa
collection equivalence.
-- Chris
_______________________________________________
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