• 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: Martin Wierschin <email@hidden>
  • Date: Thu, 11 Dec 2008 16:57:51 -0800

Hi Patrick,

The property list editor shows the root object key as "Root", but in fact the key is saved as 'root'.

I was unable to unarchieve my objects using 'unarchiveObjectWithFile' until I finally created a
hex-dump and figured out that the only difference between the files was 'root' versus 'Root':


Did I miss a convenience method to create a compatible XML file?

I don't think you've missed anything, or if so, I missed it as well. I ran into exactly the same problem a while back and it wasn't important enough for me to solve, so I just abandoned it. If you haven't already done so, I think you should file a bug with Apple on this. Either a documentation bug that the "root" key should be clearly documented, or an additional method/constant for it; perhaps both would be useful.


Thanks for sharing, nice to know if I ever need it in the future.

~Martin

_______________________________________________

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


References: 
 >NSKeyedArchiever and XML Format (From: Patrick Mau <email@hidden>)

  • Prev by Date: Re: Help reading cocoa docs - finding info about return objects and autorelease / memory management.
  • Next by Date: Re: Text layout responsibility
  • Previous by thread: NSKeyedArchiever and XML Format
  • Next by thread: Re: NSKeyedArchiever and XML Format
  • Index(es):
    • Date
    • Thread