From accdbe6d71c458f756eb8beed2220ca86b155b07 Mon Sep 17 00:00:00 2001 From: Blake Watters Date: Mon, 1 Oct 2012 22:07:23 -0400 Subject: [PATCH] Update Search project to reflect indexing API change --- Examples/RKSearchExample/RKSearchExample/RKSAppDelegate.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Examples/RKSearchExample/RKSearchExample/RKSAppDelegate.m b/Examples/RKSearchExample/RKSearchExample/RKSAppDelegate.m index ac76454d..ac489148 100644 --- a/Examples/RKSearchExample/RKSearchExample/RKSAppDelegate.m +++ b/Examples/RKSearchExample/RKSearchExample/RKSAppDelegate.m @@ -47,7 +47,7 @@ NSAssert(count != NSNotFound, @"Failed to import contacts at path '%@': %@", pathToDataFile, error); // Index the imported objects - [managedObjectStore.searchIndexer indexChangedObjectsInManagedObjectContext:importer.managedObjectContext]; + [managedObjectStore.searchIndexer indexChangedObjectsInManagedObjectContext:importer.managedObjectContext waitUntilFinished:YES]; BOOL success = [importer finishImporting:&error]; NSAssert(success, @"Failed to finish import operation: %@", error);