Update Search project to reflect indexing API change

This commit is contained in:
Blake Watters
2012-10-01 22:07:23 -04:00
parent af4c4f894b
commit accdbe6d71

View File

@@ -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);