Re: Replace -[NSKeyedUnarchiver unarchiveObjectWithData:] so it doesn't crash on corrupt archive
Re: Replace -[NSKeyedUnarchiver unarchiveObjectWithData:] so it doesn't crash on corrupt archive
- Subject: Re: Replace -[NSKeyedUnarchiver unarchiveObjectWithData:] so it doesn't crash on corrupt archive
- From: Jerry Krinock <email@hidden>
- Date: Fri, 3 Jul 2009 08:20:51 -0700
On 2009 Jul 03, at 05:50, Michael Ash wrote:
It is entirely possible that Apple's code relies
on this method throwing an exception on error.
Ah, you're correct. So I've changed it to be a regular category
method, +unarchiveObjectSafelyWithData:, instead of replacing the
method.
_______________________________________________
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