• 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: Copying and pasting chained entities
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Core Data: Copying and pasting chained entities


  • Subject: Re: Core Data: Copying and pasting chained entities
  • From: Ben Trumbull <email@hidden>
  • Date: Wed, 8 Oct 2008 13:44:34 -0700

Renaud,

Could you point me at those articles ? I was not able to find them.

I know I've seen some third party examples, but I don't have references handy. Hopefully, Google can help.


Yes, it is a simple solution, but I guess it can rarely be used. If you
Copy an object, modify the object, then Paste, the pasted object will be
like the modified object, not like the original one.

You want very deep copies. Very shallow copies are actually quite common.


I thought about an other solution: do you think we could create an other
NSManagedObjectContext and copy the graph to it ? It did not seem like one
can create a NSManagedObjectContext easily, so I did not investigate
further; but do you think it is feasible ?

You could, and it's straight forward. But it doesn't solve the general copy and paste problem since that frequently involves the ability to paste into another app.


- Ben



_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please 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: refreshObject doesn't seem to work
  • Next by Date: [Job] Cocoa developer at Skype
  • Previous by thread: Re: Core Data: Copying and pasting chained entities
  • Next by thread: comparing Strings.
  • Index(es):
    • Date
    • Thread