Re: CoreData entity mutability

2009-01-20 Thread Antoine Maillard
Thanks guys, I finally chose to duplicate the object.But I think that would be a pretty cool feature to be able to "mutate" an object. For instance, if you have an ancestor A which has a small set of properties and which evolves to a more sofisticated object (a descendant), there is no use copying

Re: CoreData entity mutability

2009-01-19 Thread Kyle Sluder
On Mon, Jan 19, 2009 at 8:39 AM, Antoine Maillard wrote: > How can I convert a NSManagedObject of type A into type B ? How often do you do this in regular code? Is it common for a method to change the identity of the receiver before returning? Hopefully the answer is no (KVO trickery aside ;) )

CoreData entity mutability

2009-01-19 Thread Antoine Maillard
Hi, I'm using CoreData in one of my projects and I designed an object model with 2 entities : A and B in which B inherits from A. How can I convert a NSManagedObject of type A into type B ? Thanks, Antoine ___ Cocoa-dev mailing list (Cocoa-dev@lists.ap