• 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
Archiving: placeholders
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Archiving: placeholders


  • Subject: Archiving: placeholders
  • From: Dan Bernstein <email@hidden>
  • Date: Sun, 16 Dec 2001 08:38:03 +0200

I guess this is very basic, but I can't figure out how to do it:

I want to archive an object graph in which multiple objects point to some "owner" object. I don't want the owner (and the graph rooted at it) to be archived. When unarchiving, I want everything that pointed to the "owner" to point to an object I supply.

I guess I should use [NSArchiver replaceObject:withObject:] to archive some "dummy" "placeholder" instead of the owner when archiving. It's just that it isn't clear when I'm supposed to do when unarchiving, in particular - what should be the first argument to [NSUnarchiver replaceObject:withObject:].

Thanks in advance,
-- Dan Bernstein


  • Prev by Date: Scaling an NSMovie proportionally
  • Next by Date: Re: Cocoa Documentation on NSFormatter
  • Previous by thread: Scaling an NSMovie proportionally
  • Next by thread: Problem with NSFontManager's traitsOfFont
  • Index(es):
    • Date
    • Thread