Commit a229be5b authored by Felix Paul Kühne's avatar Felix Paul Kühne

pick the correct managed object model

parent 096253a6
...@@ -124,7 +124,11 @@ static NSString *kDecrapifyTitles = @"MLDecrapifyTitles"; ...@@ -124,7 +124,11 @@ static NSString *kDecrapifyTitles = @"MLDecrapifyTitles";
{ {
if (_managedObjectModel) if (_managedObjectModel)
return _managedObjectModel; return _managedObjectModel;
_managedObjectModel = [NSManagedObjectModel mergedModelFromBundles:nil];
NSString *path = [[NSBundle mainBundle] pathForResource:@"MediaLibrary-2.5" ofType:@"mom"];
NSURL *momURL = [NSURL fileURLWithPath:path];
_managedObjectModel = [[NSManagedObjectModel alloc] initWithContentsOfURL:momURL];
return _managedObjectModel; return _managedObjectModel;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment