Based on Jack Nutting and Peter Clark's "Learn Cocoa on the Mac" chapter 8, page 186 I found the following solution:
I removed attribute c from the cocoa model and created a managedObject subclass. In this suclass I had to implement 2 additional methods:
- (double) c
{
double c = [[self valueForKey:@"a"] doubleValue] *[[self valueForKey:@"b"] doubleValue]] ;
return c;
}
+ (NSSet *)keyPathsForValuesAffectingC {
return [NSSet setWithObjects:@"a", @"b", nil];
}
Then bind the "text field cell - table view cell" to "Table Cell View" (and not the array controller, as described in the book).
And you should be good to go. :-)
I tried it out and could verify that it worked. But thanks to Oleg I got on the right track and I am sure his solution also has its benefits. Thanks again!