• 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
[Q] NSDecimalSeparator
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Q] NSDecimalSeparator


  • Subject: [Q] NSDecimalSeparator
  • From: Joe Chan <email@hidden>
  • Date: Sat, 10 Nov 2001 22:11:31 -0500

I have a very puzzling and surreal encounter with NSDecimalSeparator. I want to find out what the decimal charater is, so I have the following code:

NSString *str = NSDecimalSeparator;
... // more code that examines and uses the first unichar of the string

then in gdb, I put a break point after that line. When it runs to the breakpoint, I type in the command: po str. Guess what I get?

(gdb) po [str class]
NSConstantString
(gdb) po str
NSDecimalSeparator

What is going on here? I'm sure something is not right, but I don't know what. Any idea what I need to do to get either '.' or ','?

Thanks


-----------
Joe Chan
email@hidden
http://www.firstian.com


  • Follow-Ups:
    • Re: [Q] NSDecimalSeparator
      • From: Kurt Revis <email@hidden>
  • Prev by Date: Re: Nibtool for translation
  • Next by Date: Re: [Q] NSDecimalSeparator
  • Previous by thread: Re: AltiVec on OSX in Cocoa
  • Next by thread: Re: [Q] NSDecimalSeparator
  • Index(es):
    • Date
    • Thread