Re: Why Don't Cocoa's (Un)Archiving Methods return Errors?
Re: Why Don't Cocoa's (Un)Archiving Methods return Errors?
- Subject: Re: Why Don't Cocoa's (Un)Archiving Methods return Errors?
- From: Jens Alfke <email@hidden>
- Date: Sat, 30 Jul 2011 21:09:21 -0700
On Jul 29, 2011, at 8:22 PM, Jerry Krinock wrote:
> +[NSKeyedArchiver isEncodeable:(id)object]
> +[NSKeyedUnarchiver isAValidArchive:(NSData*)data]
Neither of these are feasible without actually running the archiving, including calling all of the arbitrary -initWithCoder: and -encodeWithCoder: methods. So they’d have all the same issues we’ve been discussing so far — they’d have to use a try…catch block around the [un]archiving, basically.
—Jens
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
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