Re: NSKeyedArchiever and XML Format
Re: NSKeyedArchiever and XML Format
- Subject: Re: NSKeyedArchiever and XML Format
- From: Graham Cox <email@hidden>
- Date: Fri, 12 Dec 2008 14:05:22 +1100
On 12 Dec 2008, at 1:32 pm, Martin Wierschin wrote:
The problem I had was that I needed to use -[NSUnarchiver
decodeClassName:asClassName:] for unarchiving a file previously
encoded using the convenience method. Certainly it's possible to use
the class method +[NSUnarchiver decodeClassName:asClassName:], but
it seems silly to pollute the global archiver class table for a
single file.
You can set a delegate on the unarchiver and use:
- (Class) unarchiver:(NSKeyedUnarchiver*) unarchiver
cannotDecodeObjectOfClassName:(NSString*) name originalClasses:
(NSArray*) classNames;
to avoid this problem. (If I've understood it properly)
--Graham
_______________________________________________
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