NSNumberFormatter Issues
NSNumberFormatter Issues
- Subject: NSNumberFormatter Issues
- From: Gordon Apple <email@hidden>
- Date: Sat, 04 Jul 2015 15:53:19 -0500
- Thread-topic: NSNumberFormatter Issues
I¹m having a new problem, in code that¹s been around for awhile, that I¹d
swear was never there before. Text field had a NSNumberFormatter and is
bound to a CGFloat. It is for angle entry and the format is set to show the
degree symbol suffix. A Circular slider is bound to the same value. Text
display shows correctly when slider is changed. Text entry works if the user
selects the entire field and enters the number. However, if user changes the
displayed value, leaving the degree symbol intact, it says it is invalid and
throws an exception, essentially ending the program run. This is totally
unacceptable. What is going on here? (And this behavior is showing up in
several places.) I tried setting ³lenient². Didn¹t help.
_______________________________________________
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