Core Data: Copying and pasting chained entities (Renaud C?roce)
Core Data: Copying and pasting chained entities (Renaud C?roce)
- Subject: Core Data: Copying and pasting chained entities (Renaud C?roce)
- From: Daniel Child <email@hidden>
- Date: Wed, 01 Oct 2008 10:44:51 -0400
I'm not sure if I understand your question, but if FillStyle and
FillColor are entities, why not simply create corresponding managed
objects and set their values, making sure that all of the relations
(between color and style, and between style and figure) are
established. They will then be automatically stored in the persistent
store like any other managed object. As far as I can tell, there is no
need to use archiving unless you want to prepare in a special format
for another application.
On Sep 30, 2008, at 11:23 PM, email@hidden wrote:
insertNewObjectForEntityForName:inManagedObjectContext:]), the
FillStyle
and the FillColor are filled with their default values, like on an
ordinary
creation. My problem is therefore to archive the FillStyle and the
FillColor along with the Figure, and be able to recreate the graph of
objects.
_______________________________________________
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