Cannot enter '0' into an NSTextField with an NSNumberFormatter with 0-padding
| Originator: | dhorwood | ||
| Number: | rdar://16884093 | Date Originated: | 12/5/2014 |
| Status: | Open | Resolved: | |
| Product: | OS X SDK | Product Version: | 5.1.1 / 10.9 |
| Classification: | UI | Reproducible: | Always |
Summary: An NSNumberFormatter configured with 0-padding (i.e., non-zero padding width and '0' as the padding char) will reject text entry of '0'. Actually, the NSNumberFormatter will reject entry of any number if that number also happens to be the padding char. Steps to Reproduce: 1. In a new .xib, drag a NSTextField out 2. Add an NSNumberFormatter to the text field. 3. Configure the formatter with Behavior: "OS X 10.4+ Custom"; Padding Width: '3'; Padding Char: '0'. 4. Run your app. 5. Try entering '0' into the text field. Expected Results: The text field should display '000'. Actual Results: The text field refuses text entry. Version: 5.1.1 (5B1008) / OS X 10.9
Comments
Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!