Re: NaN Problem Adding Numbers from NSTableView

2010-04-22 Thread Keary Suska
On Apr 22, 2010, at 9:06 AM, Graham Cox wrote: > > On 23/04/2010, at 12:47 AM, Keary Suska wrote: > >> I wouldn't think that the formatter would effect the calculation of a key >> path operator, which is the OP's main issue as I understan...@sum is choking >> on NaN... > > > Yep, I was think

Re: NaN Problem Adding Numbers from NSTableView

2010-04-22 Thread Graham Cox
On 23/04/2010, at 12:47 AM, Keary Suska wrote: > I wouldn't think that the formatter would effect the calculation of a key > path operator, which is the OP's main issue as I understan...@sum is choking > on NaN... Yep, I was thinking that by setting the NaN symbol it would prevent the cell f

Re: NaN Problem Adding Numbers from NSTableView

2010-04-22 Thread Keary Suska
On Apr 21, 2010, at 7:24 PM, Graham Cox wrote: > > On 22/04/2010, at 12:53 AM, Philip Juel Borges wrote: > >> But some times I need to leave a tableview cell blank and then it writes NaN >> in the label. If I type in 0 (zero) it adds up the numbers nicely. But I'd >> rather just leave the sel

Re: NaN Problem Adding Numbers from NSTableView

2010-04-21 Thread Graham Cox
On 22/04/2010, at 12:53 AM, Philip Juel Borges wrote: > But some times I need to leave a tableview cell blank and then it writes NaN > in the label. If I type in 0 (zero) it adds up the numbers nicely. But I'd > rather just leave the selection empty rather than typing in a zero. > > Any ideas

NaN Problem Adding Numbers from NSTableView

2010-04-21 Thread Philip Juel Borges
Hi, I've googled this issue to no avail until now. In my application I have a tableview with 6 columns to enter numbers for statistic purposes. That works fine. Yet, I've run into a problem adding the numbers together. Under each column below the tableview I have placed an NSLabel to show