• 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: Cocoa-dev Digest, Vol 3, Issue 1405
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: Re: Slightly OT: SIGKILL (force quit) and child process termination
  • Next by Date: Re: Problem drawing directly to bitmap rep using NSGraphicsContext
  • Previous by thread: Re: Binding an NSTextField to an NSNumber value fails with 'Switzerland (French)' localization
  • Next by thread: New Cocoa Graphics Tutorial
  • Index(es):
    • Date
    • Thread