Re: Webkit question
Re: Webkit question
- Subject: Re: Webkit question
- From: Jim Correia <email@hidden>
- Date: Mon, 25 Sep 2006 16:26:38 -0400
Jerrod,
The webkit-dev list may have more webkit experts than this list. That
said...
On Sep 25, 2006, at 2:10 PM, Jerrod Fowkes wrote:
I have the following code :
[wbvWebView setFrameLoadDelegate:self];
[wbvWebView setUIDelegate:self];
[[wbvWebView mainFrame] loadHTMLString: @"Some html" baseURL:
nil];
scriptObject = [wbvWebView windowScriptObject];
[scriptObject setValue: self forKey: @"program"];
-(void)eatAtJoes //also declared in my .h file.
{
NSLog(@"This is a test");
}
This code happens to be in my main application controller.
If you want to bind native objects to the window script object, you
have to do it in (or after) your frame load delegate has been sent -
webView:windowScriptObjectAvailable.
Jim
_______________________________________________
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