how to sum numbers using NSTableview?

Discussion in 'Mac Programming' started by sebastijan, Jul 4, 2009.

  1. macrumors member

    Joined:
    May 22, 2005
    Location:
    London, UK
    #1
    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:

    [​IMG]

    what is the easiest way to do this?

    thanks for help in advance!
     
  2. macrumors regular

    Azrel

    Joined:
    Jun 8, 2005
    #2
    something like Cell.text on the two adjacent cells?
     
  3. thread starter macrumors member

    Joined:
    May 22, 2005
    Location:
    London, UK
    #3
    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.
     

Share This Page