Re: knowing when WebView is done

2008-06-15 Thread Timothy Ritchey
Many thanks to Adam for his code, which helped to trim down the way WebKit was working for me, especially the bits about turning off JavaScript, etc. Also, to Keary for walking through the backtrace. In order to keep the memory footprint of my application down, I decided to use a helper app

Re: knowing when WebView is done

2008-06-11 Thread Timothy Ritchey
Adam, Thank you very much for that link. It was extremely helpful, and setting WebCacheModelDocumentViewer made the memory usage much cleaner. At the end of the day, I was still unhappy with the amount of memory WebKit was using in the application, so I decided to go a different route. I c

Re: knowing when WebView is done

2008-06-07 Thread Adam R. Maxwell
On Jun 7, 2008, at 6:26 AM, Timothy Ritchey wrote: On Jun 7, 2008, at 1:32 AM, Adam R. Maxwell wrote: From a quick check with Instruments, it looks like internal WebKit stuff is retaining the view for callbacks even after it's done loading, then releasing it on a later pass through the r

Re: knowing when WebView is done

2008-06-07 Thread Timothy Ritchey
On Jun 7, 2008, at 1:32 AM, Adam R. Maxwell wrote: Never. Since the frameworks retain/(auto)release stuff all the time behind your back, logging -retainCount is worse than useless, in my opinion. Very good point. It looks like he call to setMainFrameURL is what bumps up the retain coun

Re: knowing when WebView is done

2008-06-06 Thread Adam R. Maxwell
On Jun 6, 2008, at 10:06 PM, Timothy Ritchey wrote: Out of curiosity, did you ever check the retain counts on your webview objects? Never. Since the frameworks retain/(auto)release stuff all the time behind your back, logging -retainCount is worse than useless, in my opinion. If somet

Re: knowing when WebView is done

2008-06-06 Thread Timothy Ritchey
Out of curiosity, did you ever check the retain counts on your webview objects? I create my webview with: - (void)setUrl:(NSString *)value { [self willChangeValueForKey:@"url"]; [self setPrimitiveUrl:value]; [self didChangeValueForKey:@"url"]; NSRect rect = NSMakeRect(0, 0, 90

Re: knowing when WebView is done

2008-06-06 Thread Adam R. Maxwell
On Jun 5, 2008, at 7:03 PM, Timothy Ritchey wrote: even if I track frame commit/finish load as suggested in the thread, if I try to get rid of the webview, the world falls down around me when it can't push out that last delegate call of didReceiveTitle. I generally send stopLoading: to a we

Re: knowing when WebView is done

2008-06-06 Thread Rush Manbert
Darn, I thought I had a code example in my library, but I must have decided that I really didn't need to know when the load completed, because I don't have anything implemented. I did take a look at the "Loading Resources" chapter of the "Web Kit Objective-C Programming Guide" to try and re

Re: knowing when WebView is done

2008-06-05 Thread Timothy Ritchey
Here is a typical trace for a failing load for me ("main" is the name I've given to the frame): 2008-06-05 21:56:40.539 Vigil[43952:10b] didCommitLoadForFrame: main 2008-06-05 21:56:40.546 Vigil[43952:10b] didReceiveTitle: main 2008-06-05 21:56:40.598 Vigil[43952:10b] didReceiveIcon: main 2008-

Re: knowing when WebView is done

2008-06-05 Thread Timothy Ritchey
My quick search of the docs only found that delegate method in the UIWebKit iPhone docs, not in the regular WebKit. Cheers, Tim R. On Jun 5, 2008, at 6:23 PM, Mark Bateman wrote: Tim, I use the webviewdidfinishload method I'm not usre if that is any use to you...I'm quite new so I hope I'

Re: knowing when WebView is done

2008-06-05 Thread Rush Manbert
On Jun 5, 2008, at 3:23 PM, Mark Bateman wrote: Tim, I use the webviewdidfinishload method I'm not usre if that is any use to you...I'm quite new so I hope I'm not missing something obvious in your message. See this thread: http://lists.apple.com/archives/webkitsdk-dev/2005/Dec/msg000

Re: knowing when WebView is done

2008-06-05 Thread Mark Bateman
Tim, I use the webviewdidfinishload method I'm not usre if that is any use to you...I'm quite new so I hope I'm not missing something obvious in your message. Mark. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin