• 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: How to iterate over all objects stored with NSCoder
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: How to iterate over all objects stored with NSCoder
      • From: Graham Cox <email@hidden>
References: 
 >How to iterate over all objects stored with NSCoder (From: Michael Robinson <email@hidden>)
 >Re: How to iterate over all objects stored with NSCoder (From: Jens Alfke <email@hidden>)

  • Prev by Date: Re: NSFetchedResultController bug?
  • Next by Date: Re: NSString Class Instance Variables
  • Previous by thread: Re: How to iterate over all objects stored with NSCoder
  • Next by thread: Re: How to iterate over all objects stored with NSCoder
  • Index(es):
    • Date
    • Thread