nsmanagedobjectcontext
How to refresh uitableview/nsmutablearray after adding object to underlying nsmanagedobjectcontext
I have a basic UITableViewController that displays a list of schools, fetched from a simple two-entity core data repository.The tableview is bound to an NSMutableArray of schools that is loaded from a[详细]
2023-02-12 22:38 分类:问答Properly handle the deletion of an object only if there are no relationships?
I have a Person entity which belongs to a Department in a one to many relationship. I would like to be able to delete the Department when there are no more Persons associated with it (either through[详细]
2023-02-10 08:30 分类:问答Passing a managed object context with a tab controller
Okay, I\'ve tried to figure this out over and over again. I kno开发者_JAVA技巧w the best practice is to have the App Delegate pass the managed object context to the first view controller in an applic[详细]
2023-02-10 01:39 分类:问答The NSManagedObject with ID:[...] has been invalidated
I am building an app with use of core data. My RootViewController, loaded by the appDelegate is mostl开发者_运维知识库y stock from the template. However I have changed the entity name to \"Clocks\" an[详细]
2023-02-08 21:42 分类:问答iPhone: Cannot access NSManagedObjectContext using appDelegate
I have started with iPhone development sometime back and I am trying to implement core data in my application.[详细]
2023-02-06 00:02 分类:问答How To Pass ManagedObjectContext To Other View Controllers in Special Case
I have a rootViewController like so: Header: @interface ParkingRootViewController : UIViewController { UINavigationController *navigationController;[详细]
2023-02-05 18:06 分类:问答ios create sqlite db and xcdatamodel
I wish use nsmanagedobject to use a sqlite database into my project.. I downloaded CoreDataBooks sample but there\'s something that I don\'t understand right...[详细]
2023-02-04 19:00 分类:问答abort a fetchRequest in managedObjectContext
I have a fetchRequest which takes up to 4-5 seconds to finish. Since it is part of a search-as-you-type solution, is there any way to abort a fetchRequest?[详细]
2023-02-04 16:51 分类:问答Core Data and multithreading
I have read Marcus Zarra\'s chapter on multithreading in his Core Data book and have looked fairly closely at his sample code. But his code and others that I have found elsewhere seem to be focus开发者[详细]
2023-02-04 05:02 分类:问答Permanent NSManagedObject URI from temporary URI?
I have an NSManagedObject subclass which stores URIs of child objects. It initially stores the temporary URI when a child object is first created, and implements -willSave to call -obtainPermanentIDsF[详细]
2023-02-01 18:09 分类:问答