nsmanagedobjectcontext
Core Data - How to establish relationship between two objects in different contexts
In my app, I have the following CoreData model : a Foo has many Bar Entities : Foo <---->> Bar. To add a new Foo entity, I create a new MOC in which I create a new instance of Foo. This displays t[详细]
2023-04-12 23:38 分类:问答Retrieving data while multi threading
I am using multithreading while loading data from the database. I am doing the following dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0),[详细]
2023-04-12 12:32 分类:问答NSManagedObjectContextObjectsDidChangeNotification not always called instantly
I have an Mac Application using a NSPersistentDocument. I want to get notified when Objects are deleted to save this information using Core Data. So I\'m listening for NSManagedObjectContextObjectsDid[详细]
2023-04-12 07:39 分类:问答Undo manager not up to date with NSPersistentDocument
I have some calculated values in the core data database that I need to update just before saving. Basically I\'m numbering some entities in order to ease up the navigation between them.[详细]
2023-04-12 07:13 分类:问答CoreData MultiThreading Delete
In my iPad application, I am using Multithreading to read data from my database and hence I am using different manged object contexts as explained Fred McCann\'s blog[详细]
2023-04-11 13:20 分类:问答CORE DATA Many to Many relationship. How to update or set relationship?
I have 2 entities Locations and Items. Many to many relationship. So each item can have multiple locations and any location can have multiple items.[详细]
2023-04-11 05:50 分类:问答Establish relationship between managed objects in two different contexts
I am parsing JSON string to create new managed objects in a separate thread and in a separate managed object context. Later I want to merge the changes in the main thread by listening to NSManagedObje[详细]
2023-04-08 02:41 分类:问答CoreData inverse question
My understanding of an inverse relationship in CoreData is that these two statements should be equivalent:[详细]
2023-04-07 19:31 分类:问答NSPredicate that calls test method to fetch results from Core Data
I am not quite sure how to word this question without explaining what I am trying to do. I have a managed object context filled with (essentially) cir开发者_Python百科cles that have an x,y coord for[详细]
2023-04-07 04:43 分类:问答NSManagedObject Faulted
I have an NSManagedObject that has some of its properties initialized at the start of the program. When I refer to this object later, it appears to be faulted, and the properties are not accessible. I[详细]
2023-04-07 04:25 分类:问答