• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Core Data, NSManagedObject & XML
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Core Data, NSManagedObject & XML
      • From: Jim Correia <email@hidden>
  • Prev by Date: Re: Noob question regarding Cocoa objects.
  • Next by Date: Re: Core Data, NSManagedObject & XML
  • Previous by thread: Re: Slightly OT: SIGKILL (force quit) and child process termination
  • Next by thread: Re: Core Data, NSManagedObject & XML
  • Index(es):
    • Date
    • Thread