• 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
Re: Core Data, NSManagedObject & XML
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Core Data, NSManagedObject & XML (From: Martin Spenceley <email@hidden>)

  • Prev by Date: Core Data, NSManagedObject & XML
  • Next by Date: Re: Noob question regarding Cocoa objects.
  • Previous by thread: Core Data, NSManagedObject & XML
  • Next by thread: QTMovie setAttribute
  • Index(es):
    • Date
    • Thread