loadHTMLString:baseURL: display behavior
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