Hi, I've set up a model with (Task) and in my way to understand Core Data I've come as far as this: adding three items to a context:
Code:
NSManagedObjectModel *m = [NSManagedObjectModel mergedModelFromBundles:nil];
NSPersistentStoreCoordinator *p = [[NSPersistentStoreCoordinator alloc] initWithManagedObjectModel:m];
// NSPersistentStore *pp = [p addPersistentStoreWithType:NSXMLStoreType configuration:nil URL: options:<#(NSDictionary *)#> error:<#(NSError *__autoreleasing *)#>
NSManagedObjectContext *c = [[NSManagedObjectContext alloc] init];
[c setPersistentStoreCoordinator:p];
Task *t = [[Task alloc] init];
t.label = @"Test Item";
[c insertObject:t];
[c insertObject:t];
[c insertObject:t];
How can I now serialize this context to a XML file? Thanks.