Re: Web View silently fails
Re: Web View silently fails
- Subject: Re: Web View silently fails
- From: Jeff Johnson <email@hidden>
- Date: Sun, 27 Jul 2008 09:28:49 -0500
Nicolas,
Web archives are actually xml documents, so you can open and view
them in BBEdit, for example. The problem with Test2 is that the value
of "WebResourceURL" is "x-msg://21/". If you change that to a http
URL, such as "http://www.google.com/", it will load.
Probably your WebView can't handle the x-msg scheme (not sure what
that is?), while Safari can.
-Jeff
On Jul 27, 2008, at 7:34 AM, Nicolas L. wrote:
Hello!
I am having a really weird problem with WebView and more
specifically getting them to load a WebArchive. My app acquires
WebArchives (saved by Safari, TextEdit, other apps, or from the
pasteboard provided by those apps) and then later tries to load them.
My bug is WebView doesn't seem to load some of those archives, and
doesn't seem to call a delegate method with an error message
either. It just silently fails in some cases.
You will find a sample app and code demonstrating this bug here:
https://dl.getdropbox.com/u/28416/WebArchiveFailure.zip
've tested it on a couple of machines here, and the behavior is
identical (they are all on the latest Leopard): WebView #1 loads
the archive, WebView #2 silently fails, and both archives are
opened correctly in Safari.
I am pretty much stuck at this point, so any help regarding how I
could get my app to load the archives like Safari does would be
much appreciated!
Kind regards,
Nicolas
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden