Re: Core data entity creation design

2008-08-24 Thread Negm-Awad Amin
Am So,24.08.2008 um 18:10 schrieb Quincey Morris: On Aug 24, 2008, at 03:17, Steven Hamilton wrote: I have a Core Data model which contains two entities. I have a tableview with the standard bindings arrangement and Add/Remove buttons handling one of the entities. What I need to achieve is

Re: Core data entity creation design

2008-08-24 Thread Dave Fernandes
If the second entity is instantiated whenever the first is, then you can just add code to create the second entity (NSEntityDescription insertNewObjectForEntityForName:inManagedObjectContext:) inside the awakeFromInsert method of the first object. Thus, you only have to explicitly create th

Re: Core data entity creation design

2008-08-24 Thread Quincey Morris
On Aug 24, 2008, at 03:17, Steven Hamilton wrote: I have a Core Data model which contains two entities. I have a tableview with the standard bindings arrangement and Add/Remove buttons handling one of the entities. What I need to achieve is that when the Add button is pressed both entity ty

Core data entity creation design

2008-08-24 Thread Steven Hamilton
Hi folks, I have a Core Data model which contains two entities. I have a tableview with the standard bindings arrangement and Add/Remove buttons handling one of the entities. What I need to achieve is that when the Add button is pressed both entity types are created, not just the one thats