From b284b4d2a6222b2ce6e153d70fe9cf0b1eaf9219 Mon Sep 17 00:00:00 2001 From: ccwasden Date: Thu, 1 May 2014 17:14:56 +0200 Subject: [PATCH] Better mismatch notification coverage - cleanup --- .../Categories/NSPersistentStoreCoordinator+MagicalRecord.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/MagicalRecord/Categories/NSPersistentStoreCoordinator+MagicalRecord.m b/MagicalRecord/Categories/NSPersistentStoreCoordinator+MagicalRecord.m index 1cbbd5892..3edacf303 100644 --- a/MagicalRecord/Categories/NSPersistentStoreCoordinator+MagicalRecord.m +++ b/MagicalRecord/Categories/NSPersistentStoreCoordinator+MagicalRecord.m @@ -102,7 +102,7 @@ - (NSPersistentStore *) MR_addSqliteStoreNamed:(id)storeFileName withOptions:(__ MRLogWarn(@"Removed incompatible model version: %@", [url lastPathComponent]); if(deleteStoreError) { - [[NSNotificationCenter defaultCenter] postNotificationName:kMagicalRecordPSCMismatchCouldNotDeleteStore object:deleteStoreError]; + [[NSNotificationCenter defaultCenter] postNotificationName:kMagicalRecordPSCMismatchCouldNotDeleteStore object:nil userInfo:@{@"Error":deleteStoreError}]; } else { [[NSNotificationCenter defaultCenter] postNotificationName:kMagicalRecordPSCMismatchDidDeleteStore object:nil]; @@ -122,7 +122,7 @@ - (NSPersistentStore *) MR_addSqliteStoreNamed:(id)storeFileName withOptions:(__ error = nil; } else { - [[NSNotificationCenter defaultCenter] postNotificationName:kMagicalRecordPSCMismatchCouldNotRecreateStore object:error]; + [[NSNotificationCenter defaultCenter] postNotificationName:kMagicalRecordPSCMismatchCouldNotRecreateStore object:nil userInfo:@{@"Error":error}]; } } }