• 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
Detecting a bad archive?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Detecting a bad archive?


  • Subject: Detecting a bad archive?
  • From: August Trometer <email@hidden>
  • Date: Fri, 2 Dec 2005 12:07:27 -0500

I have an application which uses NSKeyArchiver and NSKeyedUnarchiver. Getting them to work is no problem. However, I've run into a situation (due to lots of test builds/quits/etc.) where the archive has become corrupted.

I can't seem to find any way to detect whether the archive is good or not. When I try to load the archive I get an error which, essentially, stops the app from continuing that particular run loop. The exact error message I'm getting is "incomprehensible archive."

Is there a way to handle this? I simply want to bypass the loading if the archive is bad. @try/@catch doesn't seem to help.

Thanks!

August



_______________________________________________
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
  • Prev by Date: Re: more than one plist in a file.
  • Next by Date: Re: Warnings that won't go away
  • Previous by thread: job listing: cocoa developer with audio experience
  • Next by thread: Re: Warnings that won't go away
  • Index(es):
    • Date
    • Thread