I was wondering if this sort of code would be ok to use
NSManagedObjectContext *moc = [(AppDelegate*)[[UIApplication sharedApplication] delegate] managedObjectContext];
for (NSDictionary *dict in objects) {
Object *object = [NSEntityDescription insertNewObjectForEntityForName:@"object"
inManagedObjectContext:moc];
// Populate model fields with appropriate dictionary keys
}
Reason why I ask is that you're advised to not pass references to a managed object context object across threads and wondering if that is indeed what is occurring here.