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
On Sep 27, 2011, at 5:33 PM, Philip McIntosh ndpmcint...@earthlink.net 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
Message: 11
Date: Wed, 28 Sep 2011 09:28:42 -0700
From: Kyle Sluder kyle.slu...@gmail.com
Subject: Re: Numeric Entry and Formatting With NSNumberFormatter Won't
Append Zeros
To: Philip McIntosh ndpmcint...@earthlink.net
Cc: cocoa-dev@lists.apple.com cocoa-dev@lists.apple.com
Message
On Wed, Sep 28, 2011 at 3:50 PM, Philip McIntosh
ndpmcint...@earthlink.net 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
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 such a key
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
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 get it to
Subject: Re: Numeric Entry and Formatting With NSNumberFormatter Won't
Append Zeros
To: Philip McIntosh ndpmcint...@earthlink.net
Cc: cocoa-dev@lists.apple.com
Message-ID: 62796e49-61ed-4b4a-8315-bdeaabeb4...@manoverboard.org
Content-Type: text/plain; charset=windows-1252
On 23 Sep
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):
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 this
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.
11 matches
Mail list logo