• 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 and space as a thousands separator
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSNumberFormatter and space as a thousands separator


  • Subject: NSNumberFormatter and space as a thousands separator
  • From: mathieu martin <email@hidden>
  • Date: Tue, 18 Jan 2005 16:41:26 +0100

Hello,

I am trying to use space character to do the thousands separtion in a
text field but the NSNumberFormatter doesn't seem to accept it.

with that code:
	NSNumberFormatter *testFormater = [[NSNumberFormatter alloc] init];
	[testFormater setFormat:@" # ###.00;0.00;- # ##0.00"];

	NSLog(@"testFormater = %@", [testFormater positiveFormat]);
	NSLog(@"testFormater = %@", [testFormater negativeFormat]);

I get :
 testFormater =  ####.00
 testFormater = - ###0.00

Is there a specific value for the space character to use it in this
kind of formatter ?
Is some could help me on this


thanks in advance

regards

Mathieu
 _______________________________________________
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

  • Follow-Ups:
    • Re: NSNumberFormatter and space as a thousands separator
      • From: Joakim Danielson <email@hidden>
  • Prev by Date: Getting NSBitmapImageRep from incomplete jpg files
  • Next by Date: NSToolbarItem - how to have it respond to a subview?
  • Previous by thread: Re: Getting NSBitmapImageRep from incomplete jpg files
  • Next by thread: Re: NSNumberFormatter and space as a thousands separator
  • Index(es):
    • Date
    • Thread