Re: Core Data: Copying and pasting chained entities

2008-10-08 Thread Ben Trumbull
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 objec

Re: Core Data: Copying and pasting chained entities

2008-10-07 Thread Renaud Céroce
Hi ben, On Mon, 6 Oct 2008 19:41:46 -0700, Ben Trumbull <[EMAIL PROTECTED]> wrote: > There are a few examples floating around. > Could you point me at those articles ? I was not able to find them. > Typically, relationships are stored externally as either references > (NSManagedObjectID i

Re: Core Data: Copying and pasting chained entities

2008-10-06 Thread Ben Trumbull
Renaud, Now, I am nearly sure that I cannot use the NSArchiver/NSUnarchiver with NSManagedObjects, because NSArchiver/NSUnarchiver know nothing about Core Data relationships and because NSUnarchiver won't know how to insert an object in the managed object context. That's correct. Manage

Re: Core Data: Copying and pasting chained entities (Renaud C?roce)

2008-10-02 Thread Renaud Céroce
Hi Daniel, thanks for answering, I guess my question was unclear, so I'm going to sum it up: How do I (with Core Data) implement Copying and pasting within my application ? Your message made me realise that I assumed I had to use the system Pasteboard. But as long as data remains within my appl

Core Data: Copying and pasting chained entities (Renaud C?roce)

2008-10-01 Thread Daniel Child
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

Core Data: Copying and pasting chained entities

2008-09-30 Thread Renaud Céroce
Hi everyone, I was not able to find any answer either on this list or on the web although I thought it must be a common interrogation (my question must then be very silly, I suppose). My program uses Core Data to maintain Figures. - A Figure has a FillStyle. - A FillStyle has a FillColor (or ha