NSNumberFormatter float 1.0 to 1
NSNumberFormatter float 1.0 to 1
- Subject: NSNumberFormatter float 1.0 to 1
- From: "Reinhard Bardenbacher" <email@hidden>
- Date: Tue, 22 Feb 2005 16:44:48 +0100 (MET)
Hi list
how can I avoid to display in a NSTextField which is attached to an
NSNumberFormatter set to floats, like setFormat:@"##0.0" (1 digit after the
comma) to display "1.0" if the input is "1" . I would prefer 1 instead of
1.0 ?
also if I use the controlTextDidChange: method for an "on the fly" update of
the number in this particular textField the user has problems to do so
because he is forced into 1.0 after deleting the digit after the comma and
will not be able to type another digit - only by selecting the whole number
with the mouse.
any idea?
kind regards
Reinhard
--
DSL Komplett von GMX +++ Supergünstig und stressfrei einsteigen!
AKTION "Kein Einrichtungspreis" nutzen: http://www.gmx.net/de/go/dsl
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden