Core Data one to many insert question

2011-01-14 Thread Philip Vallone
Hi List, I have an Entity called CDSites which has a one-to-many relationship with an Entity called CDPlacemarks. CDSites is the Parent and CDPlacemarks are the Children. My Applications allows the users to create many CDSites like this: CDSites *cdSites = [NSEntityDescription

Re: Core Data one to many insert question

2011-01-14 Thread Pablo Pons Bordes
You need to declare some method that core date implement for you, for this situations, to make your life easier XCode help you to declare it and declare those custom class file declarations: - At your Core Date model select the entities you want to make a custom class. - go to Menu FileNew

Re: Core Data one to many insert question

2011-01-14 Thread Philip Vallone
Thanks. I had used X-code to create the subclasses. I see that it created the required methods for adding the children. Thanks for the help. If I have any issues, I'll post a new question. Regards, Phil On Jan 14, 2011, at 8:07 AM, Pablo Pons Bordes pablo.mailingli...@gmail.com wrote: You