• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
loadHTMLString generating errors?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Prev by Date: Re: Default directories for multiple NSSavePanels
  • Next by Date: "Cannot find service provider" error But only when launching app
  • Previous by thread: [SOLVED] Re: Detecting the presence of Guard Malloc in code?
  • Next by thread: RE: loadHTMLString generating errors?
  • Index(es):
    • Date
    • Thread