Re: WebKit and window.external
Re: WebKit and window.external
- Subject: Re: WebKit and window.external
- From: Michael Hanna <email@hidden>
- Date: Mon, 15 Aug 2005 17:26:03 -0700
I took a look at this document:
http://developer.apple.com/documentation/Cocoa/Reference/WebKit/
ObjC_classic/Protocols/WebScripting.html
but I'm not quite sure how to apply the tools it provides. For
instance, I have a hunch that under "Invoking Methods" -
invokeDefaultMethodWithArguments: might help me out here, but I'm not
sure what to do. I can't find /any/ example documentation on this at
all. I'm quite surprised that not many developers have done work in
this area.
Michael
On 15-Aug-05, at 5:14 PM, Bob Ippolito wrote:
On Aug 15, 2005, at 1:21 PM, Michael Hanna wrote:
In the process of porting a piece of software from Windows to Mac.
The software uses Javascript to display UI elements, and it uses
window.external to access internal COM C++ functions.
Would like to port the application without having to rewrite the
Javascript(we will likely port the COM functionality).
Is this possible without a rewrite of the Javascript, perhaps
using WebKIt? The Javascript is full of COM references. Upon a
cursory search of the archives I read that window.external is not
directly usable with WebKit a couple of years ago. Has this changed?
Any suggestions on how to approach this?
It has changed for recent versions of WebKit (10.3.9+). Look at
the WebScripting protocol and the WebScriptObject class.
-bob
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden