This is as much a question as it is a warning; I had a bug in my app which I finally tracked down to the following: inside prepareForDeletion of some NSManagedObject subclass I was accessing an array
I\'m building an app which receives a number of listings from a web API, and allows the user to save some for offline viewing.My usual approach would be:
There are 3 entity Father---->Name Son---->Name FatherSon---->ID Relationships Father --->>fatherson Son--->sonfather
While inspecting the sqlite database resulting from the code below I discovered that Core Data does not seem to save the objects (records) in the order that they are created.
I have a many-to-many relationship between tables, and I populate a tableView with Activities. For that i user a simple NSPredicate like this:
I have a singleton class and I want to access it from multiple threa开发者_如何学Pythonds. The class return data from core data. I have two nsmanagedobjectcontext for each thread. Should I pass the ns
I am fetching about 2500 stars from CoreData to use in constructing a star map and would like to do most of the math for computing coordinates and such in a background thread for obvious reasons. My q
I can\'t figure this out. What I have read about transient properties tells me they can be identified in the object model with an undefined type. But the compiler complains about this with an error th
I face this problem days ago (link ). In will make this short with easy example. I have Company entity which contain to-many Entity employee and to-one Entity CEO (which inherited from employee).
I\'m trying to write data from an NSMutableArray into a core data table via an NSManagedObject for loop. It writes out the last record in the the array multiple times rather than writing out each of t