Re: NaN Problem Adding Numbers from NSTableView
Re: NaN Problem Adding Numbers from NSTableView
- Subject: Re: NaN Problem Adding Numbers from NSTableView
- From: Graham Cox <email@hidden>
- Date: Thu, 22 Apr 2010 11:24:36 +1000
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 how to solve the NaN issue?
Add a formatter to the cell and set the 'NaN symbol' to 0. You can do this in IB.
--Graham
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden