Re: Feeding NSUnarchiver bad data can cause crash
Re: Feeding NSUnarchiver bad data can cause crash
- Subject: Re: Feeding NSUnarchiver bad data can cause crash
- From: Jeremy Dronfield <email@hidden>
- Date: Thu, 3 Jun 2004 11:22:45 +0100
On 2 Jun 2004, at 9:27 pm, Douglas A. Welton wrote:
Jeremy,
Check out the section on "Handling Exceptions" in the Cocoa doc.
NS_DURING,
NS_HANDLER, and NS_ENDHANDLER are your friend ;^}
I haven't had any luck with exception handling on this. Documentation
and example code for exception handling seems hard to come by. Let's
say I do this:
NS_DURING
theText = [NSUnarchiver unarchiveObjectWith
Data:plaintext];
or
@try {
theText = [NSUnarchiver unarchiveObjectWith
Data:plaintext];
}
What error precisely am I looking for? What goes in the if() statement?
Regards,
-Jeremy
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.