[Q] NSDecimalSeparator
[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