iphone Programming Glossary: managedobjectcontexts
Generic approach to NSManagedObjectContext in multi-threaded application http://stackoverflow.com/questions/3474960/generic-approach-to-nsmanagedobjectcontext-in-multi-threaded-application moc a key to cache the context for the given thread NSString threadKey NSString stringWithFormat @ p thread delegate.managedObjectContexts is a mutable dictionary in the app delegate NSMutableDictionary managedObjectContexts delegate.managedObjectContexts if.. @ p thread delegate.managedObjectContexts is a mutable dictionary in the app delegate NSMutableDictionary managedObjectContexts delegate.managedObjectContexts if managedObjectContexts objectForKey threadKey nil create a context for this thread NSManagedObjectContext.. is a mutable dictionary in the app delegate NSMutableDictionary managedObjectContexts delegate.managedObjectContexts if managedObjectContexts objectForKey threadKey nil create a context for this thread NSManagedObjectContext threadContext..
|