Skip to content

Commit

Permalink
Merge pull request RestKit#673 from timmehmainframe/patch-1
Browse files Browse the repository at this point in the history
delegate would always be nil for managedObjectStore:didFailToCopySeedDat...
  • Loading branch information
blakewatters committed Apr 18, 2012
2 parents 69adee9 + 0e9c260 commit a999a63
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 a999a63

Please sign in to comment.