• 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
Crash trying to create Webarchive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Crash trying to create Webarchive


  • Subject: Crash trying to create Webarchive
  • From: Reza Farhad <email@hidden>
  • Date: Mon, 19 Jan 2009 23:30:29 +0000

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@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


  • Follow-Ups:
    • Re: Crash trying to create Webarchive
      • From: Corbin Dunn <email@hidden>
  • Prev by Date: Re: Memory allocation issues with NSObject and NSString
  • Next by Date: Re: Dealing with exceptions in a drawing stack
  • Previous by thread: Re: Binding of invisible controls: is lazy data loading possible?
  • Next by thread: Re: Crash trying to create Webarchive
  • Index(es):
    • Date
    • Thread