IB should accept simple arithmetical expressions in all text fields expecting numerical input
| Originator: | alexisgallagher | ||
| Number: | rdar://17426212 | Date Originated: | 2014-06-24 |
| Status: | open | Resolved: | |
| Product: | Xcode6-Beta2 | Product Version: | 6Beta2 |
| Classification: | Enhancement | Reproducible: | N/A |
Summary: Xode/IB should allow you to enter not just simple numerical literals in text fields expecting numerical values (e.g., enter "200" in the height field, to set the height to 200), but simple arithmetical expressions that will be substituted on the fly with the resulting value (e.g., enter "200+30" in the height field, to fill the field with the value 230). Why? When entering numerical values, you are often tweaking them in a systematic way, either adding or subtracting an offset, or (occasionally) dividing or multiplying by two to compensate for screen scaling factors. It is awkward, slow, and error-prone to do all this arithmetic manually before entering the values. Let the computer do the computing! Since you enter original values once, and then tweak them dozens of times, MOST of the time you are actually tweaking values, and going through this awkward, slow, error-prone workflow. If IB let you enter simple expressions like this, it would make most value manipulation much easier -- e.g., setting layout constraint constants, setting sizes and positions for manual layout, etc.. Steps to Reproduce: 1. Fire up Interface Builder, beloved friend. 2. try to enter a simple expression like "200+30" to set a new value of 230 in any text field Expected Results: 3. see a result of 230 entered. Actual Results: 4. error Version: Notes: Configuration: Attachments:
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!