You can absolutely work with dictionaries and arrays - there is nothing wrong with using these components (or the entire) of your data model. Master Data NSManagedObject is very similar to a dictionary. But sometimes you want your model objects to do more than just store data - you might also want them to know something about how different bits of data relate to each other, work with data, etc.
, Person . , ? , firstName, lastName, middleName, , , email, dateOfBirth... , , , . , , .
, , . Person, , fullName, age, initials, monogram vCard. , , . :
- (NSString*)fullName
{
return [NSString stringWithFormat:@"%@ %@ %@", self.firstName, self.middleName, self.lastName];
}
. , . , , , , , , , , , , -, , .. - , , . , , . . , , , -. . .