Skip to content

Commit

Permalink
delegate would always be nil for managedObjectStore:didFailToCopySeed…
Browse files Browse the repository at this point in the history
…Database:error:
  • Loading branch information
timmehmainframe committed Apr 13, 2012
1 parent 69adee9 commit 0e9c260
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Code/CoreData/RKManagedObjectStore.m
Original file line number Diff line number Diff line change
Expand Up @@ -127,12 +127,12 @@ - (id)initWithStoreFilename:(NSString *)storeFilename inDirectory:(NSString *)ni
NSMutableArray* allManagedObjectModels = [NSMutableArray arrayWithObject:nilOrManagedObjectModel];
_managedObjectModel = [[NSManagedObjectModel modelByMergingModels:allManagedObjectModels] retain];

_delegate = delegate;

if (nilOrNameOfSeedDatabaseInMainBundle) {
[self createStoreIfNecessaryUsingSeedDatabase:nilOrNameOfSeedDatabaseInMainBundle];
}

_delegate = delegate;

[self createPersistentStoreCoordinator];
self.primaryManagedObjectContext = [self newManagedObjectContext];

Expand Down

0 comments on commit 0e9c260

Please sign in to comment.