• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
NSNumberFormatter float 1.0 to 1
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Prev by Date: Re: convert int to NSString (Newbie)
  • Next by Date: Dimensions of a movie?
  • Previous by thread: Document with more than one window
  • Next by thread: Dimensions of a movie?
  • Index(es):
    • Date
    • Thread