• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: NSKeyedArchiever and XML Format
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: NSKeyedArchiever and XML Format
      • From: Martin Wierschin <email@hidden>
References: 
 >NSKeyedArchiever and XML Format (From: Patrick Mau <email@hidden>)
 >Re: NSKeyedArchiever and XML Format (From: Nathan Vander Wilt <email@hidden>)
 >Re: NSKeyedArchiever and XML Format (From: Martin Wierschin <email@hidden>)
 >Re: NSKeyedArchiever and XML Format (From: Nathan Vander Wilt <email@hidden>)
 >Re: NSKeyedArchiever and XML Format (From: Martin Wierschin <email@hidden>)

  • Prev by Date: Re: NSKeyedArchiever and XML Format
  • Next by Date: Re: NSKeyedArchiever and XML Format
  • Previous by thread: Re: NSKeyedArchiever and XML Format
  • Next by thread: Re: NSKeyedArchiever and XML Format
  • Index(es):
    • Date
    • Thread