Problem archiving/unarchiving object graph containing NSMutableArray
Problem archiving/unarchiving object graph containing NSMutableArray
- Subject: Problem archiving/unarchiving object graph containing NSMutableArray
- From: Mikael Wämundson <email@hidden>
- Date: Fri, 21 Nov 2008 14:12:10 +0100
Hi experienced developers!
I'm trying to archive/unarchive an object graph using
archivedDataWithRootObject: aRootObject.
aRootObject has two instance variables of type NSMutableArray. Each
mutable array contains customs objects of different types (subclasses
of NSObject). For aRootObject and the custom objects in the mutable
arrays I have implemeted encodeWithCoder and initWithCoder. When
archiving encodeWithCoder gets called for the root object but not for
the custom objects in the arrays. Same when unarchiving. Am I missing
something?
/wamund
_______________________________________________
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