I'm reading Apple's "Core Data Snippets" document (https://developer.apple.com/library/mac/#documentation/DataManagement/Conceptual/CoreDataSnippets/Articles/stack.html#//apple_ref/doc/uid/TP40008283-SW1), and I'm a bit confused at this part.
To create a new managed object context, you need a persistent store coordinator.
NSPersistentStoreCoordinator *psc = <#Get the coordinator#>;
NSManagedObjectContext *newContext = [[NSManagedObjectContext alloc] init];
[newContext setPersistentStoreCoordinator:psc];
If you already have a reference to an existing context, you can ask it for its persistent
store coordinator. This way you can be sure that the new context is using the same
coordinator as the existing one (assuming this is your intent):
NSManagedObjectContext *context = <#Get the context#>;
NSPersistentStoreCoordinator *psc = [context persistentStoreCoordinator];
NSManagedObjectContext *newContext = [[NSManagedObjectContext alloc] init];
[newContext setPersistentStoreCoordinator:psc];
Most specifically the <#Get the coordinator#> and <#Get the context#> parts. What exactly does that mean and what should go there in an actual application?
Thanks.