• 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
NSNumberFormatter Issues
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: NSNumberFormatter Issues
      • From: Graham Cox <email@hidden>
  • Prev by Date: Re: Translate curl command to NSURLRequest
  • Next by Date: Re: Translate curl command to NSURLRequest
  • Previous by thread: Re: Translate curl command to NSURLRequest
  • Next by thread: Re: NSNumberFormatter Issues
  • Index(es):
    • Date
    • Thread