• 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
Can -[NSTableColumn width] return Not a Number (nan)?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Can -[NSTableColumn width] return Not a Number (nan)?


  • Subject: Can -[NSTableColumn width] return Not a Number (nan)?
  • From: Jerry Krinock <email@hidden>
  • Date: Wed, 23 Dec 2009 19:58:10 -0800

I just spent many hours tracking down a problem that turned out to be that a column width had been written to my app's user defaults as Not a Number (nan).  The only line of code that writes this pref assigns it directly from -[NSTableColumn width].  I don't see any indication in the documentation that this method can return nan.  Has anyone ever seen -[NSTableColumn width] return nan?

Yes, I've fixed the effect by checking it with isnan() on the way in and out of user defaults._______________________________________________

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: Can -[NSTableColumn width] return Not a Number (nan)?
      • From: Graham Cox <email@hidden>
  • Prev by Date: Core Data Anomaly?
  • Next by Date: No delete cursor on drag
  • Previous by thread: Re: Core Data Anomaly?
  • Next by thread: Re: Can -[NSTableColumn width] return Not a Number (nan)?
  • Index(es):
    • Date
    • Thread