Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

local declaration of 'webView' ?



When compiling this frameLoadDelegate, I get this error in my didFinishLoadForFrame: delegate method:

warning: local declaration of 'webView' hides instance variable (// ***)

- (void)webView:(WebView *)webView didFinishLoadForFrame:(WebFrame *) frame
{
NSLog(@"didFinishLoadForFrame: %@", [(DOMHTMLElement *)[[[webView mainFrame] DOMDocument] documentElement] outerHTML]); //***
WebScriptObject * wso = [webView windowScriptObject]; //***
id result;
NSArray * args = [NSArray arrayWithObjects:scriptObject, nil];
result = [wso callWebScriptMethod:@"cocoacalling" withArguments:args];
NSLog(@"%@ result", result);
}


which is rather strange because I don't actually declare it locally!

I believe this is related to another problem I've been having where after a user event, the -outerHTML of the DOM becomes an empty <HTML></HTML> container...

is this too simple for me to see?
Michael

--
Michael Hanna
email@hidden
iChat: michaelkhanna(AIM)



_______________________________________________
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


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.