Problem with NSNumberFormatter - no result even after searching the complete cocoa mamasam archive
Problem with NSNumberFormatter - no result even after searching the complete cocoa mamasam archive
- Subject: Problem with NSNumberFormatter - no result even after searching the complete cocoa mamasam archive
- From: Poornima Ranganath <email@hidden>
- Date: Sun, 6 Jul 2003 13:48:59 +0100 (BST)
Hi All:
I have a TextField which should allow ONLY numbers
with maximam of 4 digits.
i use a number formatter on the text field[have drag
and dropped it on NSTextField].
i want the user to enter any number between 1000 to
9999 ONLY.
In the Number formatter, i enter
POSITIVE - ####
Zero-
NEGETIVE - -####
Miminum - 1000
Maximam - 9999.
[I have unchecked the Add 1000's seperator]
even check this switch does no help.
when i enter values into the text field within the
valid range,it does not loose focus AND even when i
enter junk it does not loose focus.
I can enter any junk and click on a "Ok" button and go
ahead.. I don't want this to happen.
I must not be able to click on "Ok" button nor should
the text field loose focus when any entry is made in
it unless it is valid.
What wrong am i doing??
I have gone through all the documentation on creating
number formatters, and searched the cocoa mamasam
archive without much results.
Can u pls hlp me?
Rgds,
Poornima.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.