loadHTMLString generating errors?
loadHTMLString generating errors?
- Subject: loadHTMLString generating errors?
- From: "Greg Norz" <email@hidden>
- Date: Fri, 3 Feb 2006 12:48:59 -0600
- Thread-topic: loadHTMLString generating errors?
I have a simple function to load an HTML string into a WebView,
something like :
// Basically take from SimpleCarbonWeb in /Developer/Examples/WebKit
void LoadHTML( HIViewRef inView, CFStringRef inHTML )
{
WebView* nativeView = HIWebViewGetWebView( inView );
WebFrame* mainFrame = [nativeView mainFrame];
[mainFrame loadHTMLString:(NSString*)inHTML baseURL:nil];
}
This sits as a lone function in a .mm file. The first time I send a
string, it loads the HTML into my WebView just fine. The next time I
want to load a new HTML string, the WebView does not show the new
string, and I have a ton of errors (warnings?) in the Debugger Console.
They look something like :
NSAutoreleaseNoPool(): Object 0x12345678 of class
NSCFString/WebFrame/etc autoreleased with no pool in place - just
leaking.
Looking at the archives seems to indicate that this might be something I
can ignore, but I'm getting the wrong response from the WebView. Can
someone advise if I'm missing something here?
Thanks,
greg norz
southwest airlines || southwest.com
email@hidden
Wright is Wrong! - www.setlovefree.com
_______________________________________________
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