• 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:baseURL: display behavior
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

loadHTMLString:baseURL: display behavior


  • Subject: loadHTMLString:baseURL: display behavior
  • From: Jean Bovet <email@hidden>
  • Date: Tue, 15 Nov 2005 12:38:21 -0800

Hi,

I an displaying a live preview of an html page that can be edited by the user either from within my program or using an external tool. To update the html preview, I am using the following line of code:

[[webView mainFrame] loadHTMLString:theString baseURL:theURL]

The problem is that the rendered web page is not always updated. If the user modifies the source code inside my program, it works. If he modifies the source code outside my program, the webframe doesn't display the latest changes: in both case, the same method is called and in both case I can see using NSLog() that the string I am passing to loadHTMLString: is correct. theURL is set to the original file on the disk.

Is there any caching problem behind this method ? Should I use a temporary file and use loadRequest: instead ?

Thanks for any tips!

Jean
_______________________________________________
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: making a key depend on keypaths of self
  • Next by Date: Character for Glyph?
  • Previous by thread: Re: making a key depend on keypaths of self
  • Next by thread: Character for Glyph?
  • Index(es):
    • Date
    • Thread