Core Data: Copying and pasting chained entities (Renaud C?roce)
site_archiver@lists.apple.com Delivered-To: cocoa-dev@lists.apple.com On Sep 30, 2008, at 11:23 PM, cocoa-dev-request@lists.apple.com wrote: _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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: http://lists.apple.com/mailman/options/cocoa-dev/site_archiver%40lists.apple... 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. 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. This email sent to site_archiver@lists.apple.com
participants (1)
-
Daniel Child