Dear All

I am trying to get a WebArchive from a webview:

[[[webView mainFrame] dataSource] webArchive]

For some pages I get the following Exception

NSExceptionHandler has recorded the following exception:
NSInvalidArgumentException -- *** -[NSCFArray insertObject:atIndex:]: attempt to insert nil

Now is there a way to be able to detect this and hence react to it so that the app does not crash.

Thanks in advance

Reza
_______________________________________________

Cocoa-dev mailing list ([email protected])

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