nsfetchrequest
Core Data: Bad Access Error upon Execute Fetch
In the commit of UITableView I delete an object using the following code: [_context deleteObject:[_StudiessList objectAtIndex:indexPath.row]];[详细]
2023-02-20 19:50 分类:问答NSPredicate Returns No Results with Fetch Request, Works with Array Filtering
My situation is simple: I have some records in my core data store. One of their attributes is a string called \"localId\". There\'s a point where I\'d like to find the record with a particular localId[详细]
2023-02-19 09:20 分类:问答Core data - Building a NSPredicate from a ManyToMany relationship
This is a follow up question to my previous question on: Core data: Managing employee contracts in a many-to-many relationship?[详细]
2023-02-19 02:19 分类:问答Memory leak when retrieving data from database
Hey, I\'ve created a custom retrieval method for database access: +(NSArray*) recordsForTable:(NSString *)table predicate:(NSPredicate *)prd{[详细]
2023-02-18 13:54 分类:问答setFetchBatchSize on a NSFetchRequest on the iPhone
I don\'t understand the meaning of开发者_JAVA技巧 setFetchBatchSize. In the following code, I set the fetch batch size to 20, but I still get 49 objects in my results array (which are ALL the objects[详细]
2023-02-16 05:11 分类:问答Crashing when Changing Attribute Value of Managed Object Model in Core Data
I have a 开发者_StackOverflowtable view controller which fetches items using fetched results controller for each row. When a row is selected it pushes a new view controller to edit that particular man[详细]
2023-02-15 15:09 分类:问答Core Data: Keypath Error Not Found in Entity <NSSQLEntity Studies id=3>
Could any one tell me what\'s the wrong with this code? It raises the following error and cause application to crash:[详细]
2023-02-14 19:58 分类:问答NSFetchedResultsControllerDelegate & UITableViewDelegate Behavior
I have encountered behavior with the FRC and TableView delegates that appears to be inconsistent: The initial call to performFetch causes the delegate methods to be called as expected. However, if[详细]
2023-02-14 00:55 分类:问答How to get Core Data object from specific Object ID?
I can easily get an object\'s ID in Core Data using the following code: NSManagedObjectID *moID = [managedObject objectID];[详细]
2023-02-11 23:53 分类:问答Sort NSFetchRequest by a predicate
I have a SQLite-backed core data storage and would like to fetch a list of managed objects using NSFetchRequest. I want said list to be sorted by a boolean value that can be easily calculated at the d[详细]
2023-02-11 09:25 分类:问答