nsmanagedobject
NSManagedObject - NSSet gets removed?
I have an nsmanagedObject this NSManagedObject contains an NSSet. the data for NSSet get\'s lost when i call release on an NSManagedObject with retain count of 2.[详细]
2023-02-13 14:53 分类:问答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 分类:问答Resolving an NSManagedObject conflict with multiple threads, relationships, and pointers
I\'m having a conflict when saving a bunch of NSManagedObjects via an outside thread.For starters, I can tell you the following:[详细]
2023-02-12 20:51 分类:问答Advice on dynamically altering default core data model content
I\'ve added the following image to help illustrate the problem better: Hi, I\'m looking for the best starting point to alter the data stored my core data model directly - speaking as someone who\'[详细]
2023-02-11 00:37 分类:问答How to prevent release of NSManagedObject on default set up
My newness to xcode has had me scratching my head over this problem for 2 days now and anything I\'ve googled and feels slightly related doesn\'t appear to work. I see this is a very regular problem a[详细]
2023-02-10 11:42 分类:问答Retrieving an NSManagedObject from an NSSet
I\'ve got two entities with a one-to-many relationship between them. The e开发者_开发百科ntity that holds \"many\" has the expected NSSet property. What I\'m not sure is how to access a specific eleme[详细]
2023-02-10 09:49 分类:问答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 分类:问答After setting one NSManaged object to another it returns Null
I am trying to pass the selected object in my coredata from the ro开发者_开发知识库otviewcontroller to the edit view. The selected object is being passed but is then becoming null after the theObject=[详细]
2023-02-08 23:02 分类:问答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 分类:问答Core-Data willSave: method
I have an attribute modificationDate in my Entity A. I want to set its value whenever NSManagedObject is saved. However, if i try to do that in NSManagedObject willSave: method, i get an error:[详细]
2023-02-08 06:26 分类:问答