I created a NSMutableArray which contains a lot of NSString and float
DataOrder *addClient = [[DataOrder alloc ] initWithName:[[DataOrder instance]product] pric
Key-Value coding:
NSNumber *sum = [[[ArrayBuying instance] tableau] valueForKeyPath:@"@sum.price"];
gives the sum of the "price" attribute of all the objects in the array.
To make this work with your custom objects, price should be a property of DataOrder.
price
DataOrder