• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Webkit question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Webkit question (From: Jerrod Fowkes <email@hidden>)

  • Prev by Date: Re: Filling with a pattern *and* a color?
  • Next by Date: Tracing Cocoa Functions
  • Previous by thread: Webkit question
  • Next by thread: Filling with a pattern *and* a color?
  • Index(es):
    • Date
    • Thread