Re: Programatically created WebView crashes
Re: Programatically created WebView crashes
- Subject: Re: Programatically created WebView crashes
- From: Scott Garner <email@hidden>
- Date: Sun, 24 Jul 2005 01:38:44 -0500
On Jul 24, 2005, at 01:18, Scott Anguish wrote:
- (void)webView:(WebView*)webView didFinishLoadForFrame:(WebFrame*)
frame
{
if ([webView mainFrame] == frame)
NSLog(@"didFinishLoadForFrame for mainFrame");
should there be paren braces around something here?
loadComplete = YES;
}
Oops, looks like I overstripped a little when preparing the block for
email. You're correct--it should read:
- (void)webView:(WebView*)webView didFinishLoadForFrame:(WebFrame*)frame
{
if ([webView mainFrame] == frame) {
NSLog(@"didFinishLoadForFrame for mainFrame");
loadComplete = YES;
}
}
A little more information: After playing with the Zombie features of
NSDebug, I now get this on the Debugger Console:
2005-07-24 01:29:21.840 browsish[4264] Trying http://news.bbc.co.uk/...
2005-07-24 01:29:22.302 browsish[4264] didReceiveTitle for mainFrame
-- BBC NEWS | News Front Page
2005-07-24 01:29:23.831 browsish[4264] didFinishLoadForFrame for
mainFrame
2005-07-24 01:29:26.070 browsish[4264] *** Selector 'release' sent to
dealloced instance 0x8faf1e0 of class WebHTMLView.
Break at '-[_NSZombie release]' to debug.
2005-07-24 01:29:26.086 browsish[4264] *** -[NSAutoreleasePool
dealloc]: Exception ignored while releasing an object in an
autorelease pool: *** Selector 'release' sent to dealloced instance
0x8faf1e0 of class WebHTMLView.
_______________________________________________
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