Take the following code, I have to remember what the key
names are for my custom data models.
// define a sort descriptor
NSSortDescriptor *descriptor = [[NSSortDescriptor alloc]initWithKey:@"timeStamp"; ascending:YES];
NSArray *scArray = [[NSArray alloc]initWithObjects:descriptor, nil];
Is there no way that I can do something like, myCustomDataModel.timeStamp
instead, like I do when I insert an entity into my store with my custom managedObjects
? One reason to do it like this is reduce typing errors. (I forgot what the word is called, something along the line of type face? The word I was going for had the meaning of there being less errors due to compile time checking)