NSNumberFormatter question
NSNumberFormatter question
- Subject: NSNumberFormatter question
- From: Vinay Prabhu <email@hidden>
- Date: Mon, 4 Sep 2006 15:39:16 +0530
- Importance: Normal
Hi,
I have a NSTextField, which should accept values ranging from -180 to +180.
I have subclassed the NSNumberFormatter and used it to filter the inputs to
text field.
The problem is, when I set the negative numbers programmatically to text
field, it displays the hyphen "-" indicating the negative value.
But when I try to enter the hyphen "-" through keyboard, it doesn't display
"-", instead number 0 is displayed.
I have used all the formats given in the NSFormatter documentation, i.e,
'just positve format', 'positive and negative format' and 'positive, zero
and negative format'.
There are API's to set the negative symbols, minus sign etc in
NSNumberFormatter class, but they are supported for 10.4 onwards.
I need to support the software from 10.3 onwards.
Any help in this regards will be appreciated...
Thanks for the help.
Regards
Vinay
_______________________________________________
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