Core Data, NSManagedObject & XML
Core Data, NSManagedObject & XML
- Subject: Core Data, NSManagedObject & XML
- From: Martin Spenceley <email@hidden>
- Date: Tue, 28 Nov 2006 19:11:04 +0000
Hi all,
I've a bit of a newbie question. For some time I've been working with
Core Data and now want to be able to export some data out of one
application and import into another (using a simple XML format).
Now, my first thoughts was since the NSPersistentStoreCoordinator can
generate XML, I thought there might be some way of selecting a
specific NSManagedObject and saving that. No luck.
Then I thought, since the NSPersistentStoreCoordinator is managing
the NSManagedObject perhaps the class has already got
encodeWithCoder: defined so it would automatically archive using
NSArchiver. Surprisingly, I found it hasn't.
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.
Regards,
Martin
---------
Crumpets Farm.
_______________________________________________
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