Re: Numeric Entry and Formatting With NSNumberFormatter Won't Append Zeros

2011-09-29 Thread Philip McIntosh
> > I suspect you're halfway to the solution. When you get a partially-entered > string, you are already looking for the decimal point (which should of course > be a localized comparison). You *could* try to insert the grouping separators > yourself, but that would potentially involve writing a

Re: Numeric Entry and Formatting With NSNumberFormatter Won't Append Zeros

2011-09-28 Thread Lee Ann Rucker
On Sep 28, 2011, at 4:26 PM, Quincey Morris wrote: > On Sep 28, 2011, at 15:50 , Philip McIntosh wrote: > >> I want the number in the display (which is a string representation of the >> number) to be formatted as it is entered not after any "return" or >> "calculate" keys are pressed. I can ge

Re: Numeric Entry and Formatting With NSNumberFormatter Won't Append Zeros

2011-09-28 Thread Quincey Morris
On Sep 28, 2011, at 16:26 , Quincey Morris wrote: > based on a belief that the difference is small enough to be either really > confusing or annoying Oops, I meant "based on your belief that the difference is small enough to *not* be either really confusing or annoying".___

Re: Numeric Entry and Formatting With NSNumberFormatter Won't Append Zeros

2011-09-28 Thread Quincey Morris
On Sep 28, 2011, at 15:50 , Philip McIntosh wrote: > I want the number in the display (which is a string representation of the > number) to be formatted as it is entered not after any "return" or > "calculate" keys are pressed. I can get it to format and display the string > correctly "after" s

Re: Numeric Entry and Formatting With NSNumberFormatter Won't Append Zeros

2011-09-28 Thread Kyle Sluder
On Wed, Sep 28, 2011 at 3:50 PM, Philip McIntosh wrote: >> user input builds up a string in the UITextView > > Yes and I want the grouping symbols and decimal separator to show up as the > string is built up. Okay, I understand now. As the user is entering text, they are building a string of th

Re: Numeric Entry and Formatting With NSNumberFormatter Won't Append Zeros

2011-09-28 Thread Philip McIntosh
> Message: 11 > Date: Wed, 28 Sep 2011 09:28:42 -0700 > From: Kyle Sluder > Subject: Re: Numeric Entry and Formatting With NSNumberFormatter Won't > Append Zeros > To: Philip McIntosh > Cc: "cocoa-dev@lists.apple.com" > Message-ID: <053c

Re: Numeric Entry and Formatting With NSNumberFormatter Won't Append Zeros

2011-09-28 Thread Kyle Sluder
On Sep 27, 2011, at 5:33 PM, Philip McIntosh wrote: > I don't see anything wrong with pulling a string off a display, formatting it > as a number, converting the number back into a string and redisplaying it. As > I said the formatter works as expected with any number I give it starting out >

Re: Numeric Entry and Formatting With NSNumberFormatter Won't Append Zeros

2011-09-27 Thread Philip McIntosh
> Subject: Re: Numeric Entry and Formatting With NSNumberFormatter Won't > Append Zeros > To: Philip McIntosh > Cc: cocoa-dev@lists.apple.com > Message-ID: <62796e49-61ed-4b4a-8315-bdeaabeb4...@manoverboard.org> > Content-Type: text/plain; charset=windows-1252

Re: Numeric Entry and Formatting With NSNumberFormatter Won't Append Zeros

2011-09-26 Thread Fritz Anderson
On 26 Sep 2011, at 2:33 PM, Fritz Anderson wrote: > Once you've tamed those issues, see if your Forgive me… Once you've tamed those issues, see if your problem persists. Put a breakpoint at the beginning of the target method, step through, and see if the values are what you expect them to be.

Re: Numeric Entry and Formatting With NSNumberFormatter Won't Append Zeros

2011-09-26 Thread Fritz Anderson
On 23 Sep 2011, at 6:48 PM, Philip McIntosh wrote: > I have a calculation project using buttons to input numbers into a UILabel. I > want it to format the numbers as they are entered to display grouping > separators. It has been a struggle but so far the best I have ben able to > achieve is thi

Numeric Entry and Formatting With NSNumberFormatter Won't Append Zeros

2011-09-26 Thread Philip McIntosh
I have a calculation project using buttons to input numbers into a UILabel. I want it to format the numbers as they are entered to display grouping separators. It has been a struggle but so far the best I have ben able to achieve is this (I got the basic idea from a post at stackoverflow.com):