Re: Core Data: Copying and pasting chained entities
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