Better to archive 1 large object or several smaller objects with NSCoder?
I have a need to archive an array of objects of several different types. Each object has its own instance vars.
Is it better to create singleton object with an array that holds ~20 archived objects, or have a single archived object that has an array of all the other objects? Sorry if that's confusing, but I'm a bit confused m开发者_开发技巧yself.
Is the array something that already exists? If so, the owner of the array of objects should archive the array.
If you just have disparate objects that need archiving you probably need to describe your architecture a bit further.
In general, the owning object would archive the instance being archived.
精彩评论