I have a composite structure with many properties in the components.
I’ve implemented NSCoding protocol for every participant, the strong properties get archived well.
But every component have a weak link to its parent. I think if I simply encode the parents as the rest owned object, then redundant/duplicated instances gonna born upon decoding.
How to archive such a relationships in an object graph?
I think I simply have to use conditional encoding – http://developer.apple.com/library/mac/documentation/cocoa/conceptual/Archiving/Articles/archives.html#//apple_ref/doc/uid/20000946-142208-BBCFHBHA – on weak references. I’ll try it out soon.