I need to update a value for each arranged object in Core Data, and I am currently using a loop. But I want to know if the following code is thread-safe or not, and why.
ManagedObjectContext is not thread safe, explained here
[myArrayController.arrangedObjects enumerateObjectsWithOptions:NSEnumerationConcurrent
usingBlock:^(id obj, NSUInteger idx, BOOL *stop) {
// do some work
[obj setValue:@"some value" forKey:@"aKey"];
}]