Re: CoreData fetched property: one-to-one-to-many relationship

2008-08-04 Thread Negm-Awad Amin
Am Mo,04.08.2008 um 00:19 schrieb James Gregurich: thanks for the response. Adding the property is straight forward. The key parts that are not clear to me are: 1) how exactly do you set up a predicate to walk an extra entity to get to the target entity. Loook at the documentation of

CoreData fetched property: one-to-one-to-many relationship

2008-08-03 Thread James Gregurich
greetings! I'm trying to figure out how to dynamically (in code) set up a fetched property with a Coredata in-memory store. The documentation is not detailed enough for me to quite see what the correct way to set the code up is and I'm not finding much in the way of useful sample code

Re: CoreData fetched property: one-to-one-to-many relationship

2008-08-03 Thread Omar Qazi
Create an NSFetechedPropertyDescription by setting up a fetch request in code, then add the property using the setProperties method of NSEntityDescription. It is only possible to edit an NSEntityDescription if you are not associated with a persistent store coordinator, so be careful. You

Re: CoreData fetched property: one-to-one-to-many relationship

2008-08-03 Thread James Gregurich
thanks for the response. Adding the property is straight forward. The key parts that are not clear to me are: 1) how exactly do you set up a predicate to walk an extra entity to get to the target entity. 2) how do you specify the destination entity. pass it to [NSFetchRequest