| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
Subject: Widget Plugin Date: April 3, 2006 6:59:10 PM CDT Okay folks, either a) I am an idiot (likely) or b) Something is not working Here is the code in my widget plugin:1 -(id)initWithWebView:(WebView*)w { NSLog(@"Entering -initWithWebView:%@", w); [w setFrameLoadDelegate:self]; self = [super init]; return self; } // windowScriptObjectAvailable // // This method gives you the object that you use to bridge between the // Obj-C world and the _javascript_ world. Use setValue:forKey: to give // the object the name it's refered to in the _javascript_ side. - (void)windowScriptObjectAvailable:(WebScriptObject*)wso { NSLog(@"windowScriptObjectAvailable"); } /*********************************************/ // Methods required by the WebScripting protocol /*********************************************/ - (void)webView:(WebView *)webView didFinishLoadForFrame:(WebFrame *) frame { NSLog(@"didFinishLoadForFrame %@", frame); } When I run the widget, here is my output... 2006-04-03 18:02:13.087 DashboardClient[12647] Entering -initWithWebView:<DashboardWebView: 0x32c9a0> 2006-04-03 18:02:22.665 DashboardClient[12647] didFinishLoadForFrame <WebFrame: 0x348d50> 2006-04-03 18:02:22.666 DashboardClient[12647] didFinishLoadForFrame <WebFrame: 0x32f880> the windowScriptObjectAvailable is never called and the page doesn't load (visually) if I remove the line: [w setFrameLoadDelegate:self]; Then the it is called, but obviously the didFinishLoadForFrame is never called. What am I doing wrong? Steve |
_______________________________________________ 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 This email sent to email@hidden
| Home | Archives | FAQ | Terms/Conditions | Contact | RSS | Lists | About |
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE
Contact Apple | Terms of Use | Privacy Policy
Copyright © 2007 Apple Inc. All rights reserved.