nsfetchrequest
Core Data - NSPredicate to filter to-many relationship
I have 2 entities, Task and List. Each task has a to-one relationship to a List object called \"list\", and there is an inverse relationship with List, which has a to-many relationship with Task calle[详细]
2022-12-24 00:57 分类:问答NSFetchRequest returns correct number of objects, but each object contains nil attributes
I can\'t figure out why this is happening. I can add to the context. But when I retrieve the objects, it returns the correct number of objects but the attributes of the objects are null.[详细]
2022-12-22 13:13 分类:问答Performing multiple fetches in Core Data within the same view
I have my CD store setup and everything is working. Once my initial fetch is performed, I need to perform several fetches based on calculations using the data from my first fetch. The examples provide[详细]
2022-12-22 12:51 分类:问答NSFetchRequests returns 0 results when it should return 1
I am trying to perform a fetch on core data after i insert an entity, and I get 0 results. I have a Person Entity.And i built a fetch Request in the DataModule GUI with the predicate:[详细]
2022-12-20 13:29 分类:问答Core Data pattern: how to efficiently update local info with changes from network?
I have some inefficiency in my app that I\'d like to understand and fix. My algorithm is: fetch object collection from network[详细]
2022-12-19 02:05 分类:问答iPhone Core Data - Simple Query
I am trying to create a Core Data iPhone application.One of the entities I\'m tracking is cars, and one attribute of each car is \"manufacturer\".[详细]
2022-12-17 09:37 分类:问答Fetching relations with Core Data
I have two managed objects which have a bidirectional relationship. It is a \'segmentWithDetails\' which contains a \'segment\' object.[详细]
2022-12-17 06:18 分类:问答CoreData: Find minimum of calculated property
Say I have a CoreData entity \"Point\" with two properties x and y (both NSNumber). How would a NSPredicate need to look like to let me find the closest Point to say a,b?[详细]
2022-12-09 05:28 分类:问答