Re: Core Data, NSManagedObject & XML
Re: Core Data, NSManagedObject & XML
- Subject: Re: Core Data, NSManagedObject & XML
- From: Jim Correia <email@hidden>
- Date: Tue, 28 Nov 2006 14:47:36 -0500
On Nov 28, 2006, at 2:11 PM, Martin Spenceley wrote:
Does this mean if I want to serialise an NSManagedObject I still
have to create my own serialising functions?
Or have I missed something fundamental?
Just that I find it strange the 'XML Archiving' done by the
NSPersistentStoreCoordinator isn't available on a per
NSManagedObject basis.
Core Data provides object *graph* management. What would you want it
to do when your object has relationships to other objects (which have
relationships to other objects, etc.)?
If you are only interested in serializing the attributes, not the
relationships, you can use the entity description along with key
value coding to get the values in a generic way. Then serialize them
into your favorite format.
Jim
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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