Can I return a C++ object instead of an objective-c object to
javascript? If so, how will the implementation be different?
You can use the C binding API for JavaScript; it's more powerful
complete than the Objective-C bridge. You'll need to create the
object using the functions from the <JavaScriptCore/JSObjectRef.h>
header.
Unfortunately there's no way to return a JSObjectRef from an
Objective-C method, so the function that returns this object will
need to be implemented using the JavaScriptCore API. I think that in
practice this means that you need to convert the entire object you
are exporting to JavaScript to the new scheme, even if your need is
only for one return value in one function.
That's something I have (pretty close to the bottom) of my ToDo list.
Is there any sample available for the bridging functionality?
TIA,
Tom_E
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webkitsdk-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webkitsdk-dev/email@hidden