I have an entity with a relationship with itself. I have declared a first to-many relationship named children. And a one to one named parent.
) for several reasons, I have to create 2 ManagedObjectContext, eac开发者_如何学JAVAh one having a different NSPersistentStoreCoordinator (one is NSSqlLiteType, the othe is a NSInMemoryType).
i would like to understand a bit more Core Data, why do we \"fetch\" and search for entities while the entities are \"inside\" managed objects? For example :
I am trying to create two tables within the same sqlite database. Now, this two managedObjectModels don\'t run in the same instance. Let me explain...I run the application once, and I create the manag
I\'ve been looking at some projects about Core Data, and i can never find the sqlite file inside the project.
Imagine you have a list of items which is an array of objects (fields: title, description, date) ordered by date. You pick an item from the list开发者_C百科 and store it on the local device. You then
I have to perform a fetch via NSFetchedResultsController on a background thread. My current solution is structured like that:
I am creating multiple persistent store in my application, but I am using only one persistent store coordinator and managed object model. Now my question is when I call save method on managed object c
I have a core data app that I am using with a sql lite db.I\'ve populated it in my simulator and now I\'d like to send it with the app, but whenever I install it on the ipad, the db is blank!
Im开发者_Go百科 trying to perform a fetch request programmatically to retrieve certain entities from \"EntityA\". However i need toset the Destination for the fetch request to \"EntityB\" for the pred