I would like to understand a little more Core Data, why do we “select” and search for objects, while entities are “internal” managed objects? For instance:
NSManagedObjectContext *moc = [self managedObjectContext]; NSEntityDescription *entityDescription = [NSEntityDescription entityForName:@"Employee" inManagedObjectContext:moc]; NSFetchRequest *request = [[[NSFetchRequest alloc] init] autorelease]; [request setEntity:entityDescription];
also, what does persistent object storage contain? if I understand, the persistent store takes data from the sqlite file, but then it gets a little confused, right: one object for one persistent store for the same information inside the sqlite file?
thank you for your responses
Floor
source share