Re: WebKit question
Re: WebKit question
- Subject: Re: WebKit question
- From: Jonathan Wight <email@hidden>
- Date: Tue, 11 Nov 2003 11:52:56 -0600
Hi Alesh,
There is nothing built in to WebKit (or JavaScriptCore/WebCore) to
enable this. IMO there should be. But what we've done is to modify
JavaScriptCore to treat Objective-C objects as JavaScript objects. The
problem with that is that you need to bundle your modified
JavaScriptCore with your application (and possibly one version of
JavaScriptCore for each revision of WebKit Apple releases). Of course
this only works for your application and not for any other app using
WebKit (i.e. Safari). As you can tell this solution is very hackish -
and this is why Apple need to implement this themselves and provide a
nice simple hook to the app developer.
Although saying that, it all works really well. One big issue is of
course security. Running (semi-)arbitrary Objective-C code from
JavaScript can be dangerous.
We've filed a bug requesting a hook for this functionality, I suggest
you do the same.
Jon.
On Nov 11, 2003, at 10:14, Alesh Slovak wrote:
I was just looking at Web Kit and was wondering if there is a facility
that allows JavaScript to call native code, something like what XPCOM
does
in Mozilla. It sure doesn't look like this is possible from looking at
the
Web Kit Reference for Objective-C. This would be a handy feature for
embedding with Web Kit.
Thanks,
Alesh
_______________________________________________
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.
_______________________________________________
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.