See title ^
Code causing this:
NSManagedObjectContext *context = [fetchedResultsController managedObjectContext];
Name *name = (Name *)[NSEntityDescription insertNewObjectForEntityForName:@"Name" inManagedObjectContext:context];
Feature *feature = (Features *)[NSEntityDescription insertNewObjectForEntityForName:@"thing" inManagedObjectContext:context];
[feature setName:app];
[name addFeaturesObject:feature];
app is an NSString defined earlier.
Things I've tried:
in viewDidLoad:
if (managedObjectContext == nil)
{
managedObjectContext = [(IsidoreAppDelegate *)[[UIApplication sharedApplication] delegate] managedObjectContext];
}