Can -[NSTableColumn width] return Not a Number (nan)?
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