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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to