In the Core Data Recipe sample, where are the categories list (Snack, Appetizer, etc) actually stored?
This is the code in the TypeSelectionViewController, where it gets the recipeTypes array, which is then used to populate the tableview:
Code:
[super viewWillAppear:animated];
// Fetch the recipe types in alphabetical order by name from the recipe's context.
NSManagedObjectContext *context = [recipe managedObjectContext];
NSFetchRequest *fetchRequest = [[NSFetchRequest alloc] init];
[fetchRequest setEntity:[NSEntityDescription entityForName:@"RecipeType" inManagedObjectContext:context]];
NSSortDescriptor *sortDescriptor = [[NSSortDescriptor alloc] initWithKey:@"name" ascending:YES];
NSArray *sortDescriptors = [[NSArray alloc] initWithObjects:&sortDescriptor count:1];
[fetchRequest setSortDescriptors:sortDescriptors];
NSError *error = nil;
NSArray *types = [context executeFetchRequest:fetchRequest error:&error];
self.recipeTypes = types;
[fetchRequest release];
[sortDescriptor release];
[sortDescriptors release];
But where I can change them?