Re: Cocoa-dev Digest, Vol 3, Issue 1405
Re: Cocoa-dev Digest, Vol 3, Issue 1405
- Subject: Re: Cocoa-dev Digest, Vol 3, Issue 1405
- From: Martin Spenceley <email@hidden>
- Date: Tue, 28 Nov 2006 22:23:41 +0000
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.)?
I would expect various options from including all referenced Objects
through to a simple replacement of
references with a unique id or something.
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.
So it's me having to do my own serialisation.
All that lovely XML generated by NSPersistentStoreCoordinator did
look too good to be true! :-)
Regards,
Martin
_______________________________________________
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