Skip navigation.
 
mlRe: Programatically created WebView crashes
FROM : Scott Garner
DATE : Sun Jul 24 08:38:44 2005

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.

Related mailsAuthorDate
mlProgramatically created WebView crashes Scott Garner Jul 24, 06:02
mlRe: Programatically created WebView crashes Scott Garner Jul 24, 08:38
mlRe: Programatically created WebView crashes Jerry Krinock Jul 24, 17:38