• 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 negative and NSWindowsLatin1
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSNumberFormatter negative and NSWindowsLatin1


  • Subject: NSNumberFormatter negative and NSWindowsLatin1
  • From: Totte Alm <email@hidden>
  • Date: Thu, 07 Aug 2014 08:43:04 +0200

Hello,


In 10.9 I (or a client really) just stumbled upon a weirdness regarding NSNumberFornatter (Swedish default settings), where a negative number is transformed to a string and that string is later written to a file using NSString Write..

The - sign (minus) that NSNumberFormatter puts into the string is a special UTF-8 character /u8892 and it won’t convert when saving the file as WindowsLatin1, NSString write giving an error.

Workaround:

[doubleFormatter setMinusSign:@"-"];

Anyone knows if this is intentional or just a bug that needs to be filed on radar?

/ Totte

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden


  • Prev by Date: Re: Talking to other apps - again
  • Next by Date: Re: How do I hide/show a status bar?
  • Previous by thread: Re: Does webView:setToolbarsVisible: also mean the window's toolbar?
  • Next by thread: Re: NSNumberFormatter negative and NSWindowsLatin1
  • Index(es):
    • Date
    • Thread