You didn’t tell us anything about the attributes and relationships that a particular financier has, but in general you can use accessors or KVC to get data from each object:
NSManagedObject *financialsData = [serverResult valueForKey:@"financials"];
NSSet *financiers = [financialsData valueForKey:@"planFinanciers"];
for (NSManagedObject *financier in financiers)
{
NSLog(@"Name: %@\tNet Worth:%.2f", financier.name, financier.netWorth);
NSLog(@"Name: %@\tNet Worth:%.2f", [financier valueForKey:@"name"], [[financier valueForKey@"netWorth"] floatValue]);
}
Do not take my word for it though ... read Ways to access managed objects .
source
share