Does NSCoding keep graph relationships?

Discussion in 'iPhone/iPad Programming' started by martay, Mar 2, 2009.

  1. macrumors newbie

    Joined:
    Oct 1, 2008
    #1
    I have a World class that has pointers to a Character and a Structure. The Character has a pointer to the Structure. If I have the world decode the Structure and the Character decode the structure, will I end up with one Structure object or two?

    I.e., is the decode mechanism smart enough to notice that 2 references in my archive are to the same object?

    If not, does anybody have a "best practices" approach to reinstating the relationship?
     

Share This Page