Re: How to iterate over all objects stored with NSCoder
Re: How to iterate over all objects stored with NSCoder
- Subject: Re: How to iterate over all objects stored with NSCoder
- From: Graham Cox <email@hidden>
- Date: Wed, 14 Oct 2009 10:24:25 +1100
On 14/10/2009, at 5:32 AM, Jens Alfke wrote:
As I lost the source code, I would like to know if there is a way
to dump all keys/values from NSCoder so I can use it to help me
with my arduous rewrite.
There is not any API for this. Parsing an archive is pretty
difficult unless you have the same classes available. Although if
it's in XML, not binary, format, it is somewhat understandable if
you squint at it hard enough (or parse it with NSXML.)
It can also be parsed by the Property List Editor utility, which at
least gives you a glimpse at the names of the classes and keys used.
It takes some detective work but you can even work out what keys are
with which class. It's not much, but it's something.
--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