• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: NaN Problem Adding Numbers from NSTableView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NaN Problem Adding Numbers from NSTableView


  • Subject: Re: NaN Problem Adding Numbers from NSTableView
  • From: Graham Cox <email@hidden>
  • Date: Fri, 23 Apr 2010 01:06:04 +1000

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 understand--@sum is choking on NaN...


Yep, I was thinking that by setting the NaN symbol it would prevent the cell from putting out a NaN value, but of course it works the other way around. It's odd though, surely any non-parsable string in the cell returns 0 for -stringValue? It could still be an effect of the formatter - it might be converting strings to NaN by some internal logic of its own. If so, a subclass that converts in another fashion would be the way to do it.

--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

  • Follow-Ups:
    • Re: NaN Problem Adding Numbers from NSTableView
      • From: Keary Suska <email@hidden>
References: 
 >NaN Problem Adding Numbers from NSTableView (From: Philip Juel Borges <email@hidden>)
 >Re: NaN Problem Adding Numbers from NSTableView (From: Graham Cox <email@hidden>)
 >Re: NaN Problem Adding Numbers from NSTableView (From: Keary Suska <email@hidden>)

  • Prev by Date: Re: NaN Problem Adding Numbers from NSTableView
  • Next by Date: NSURLConnection Crashes : Mac OS 10.6.3 Edition! (Was: Async NSURLConnection...)
  • Previous by thread: Re: NaN Problem Adding Numbers from NSTableView
  • Next by thread: Re: NaN Problem Adding Numbers from NSTableView
  • Index(es):
    • Date
    • Thread