Detecting a bad archive?
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