PDA

View Full Version : how to sum numbers using NSTableview?




sebastijan
Jul 4, 2009, 07:30 PM
hi everyone.

I am using NSTableView and Core Data and would like to sum numbers from two columns and show it in third column. Like this:

http://www.shrani.si/f/3r/5h/4MNSm4Th/1/picture-2.png

what is the easiest way to do this?

thanks for help in advance!



Azrel
Jul 5, 2009, 03:11 AM
something like Cell.text on the two adjacent cells?

sebastijan
Jul 5, 2009, 04:13 AM
cell.text, how?

is there no way to do this in Table Column Bindings / Value Transformer (like we do for column: @sum, @count, etc.) or maybe in xcdatamodel?

can someone provide solution? i would be very grateful.

thanks.