mirror of
https://github.com/zhigang1992/RestKit.git
synced 2026-04-24 12:55:58 +08:00
Fix README.md mention of primary managed object context
This commit is contained in:
@@ -390,7 +390,7 @@ RKManagedObjectStore *managedObjectStore = [[RKManagedObjectStore alloc] initWit
|
||||
[managedObjectStore addSearchIndexingToEntityForName:@"Article" onAttributes:@[ @"title", @"body" ]];
|
||||
[managedObjectStore addInMemoryPersistentStore:nil];
|
||||
[managedObjectStore createManagedObjectContexts];
|
||||
[managedObjectStore startIndexingPrimaryManagedObjectContext];
|
||||
[managedObjectStore startIndexingPersistentStoreManagedObjectContext];
|
||||
|
||||
Article *article1 = [NSEntityDescription insertNewObjectForEntityForName:@"Article" inManagedObjectContext:managedObjectStore.mainQueueManagedObjectContext];
|
||||
article1.title = @"First Article";
|
||||
|
||||
Reference in New Issue
Block a user