NSNumberFormatter problem?
NSNumberFormatter problem?
- Subject: NSNumberFormatter problem?
- From: Andreas Schwarz <email@hidden>
- Date: Wed, 17 Apr 2002 15:03:59 -0700
I have a few NSNumberFormatters in my nibs that are supposed to work
with some text fields to keep the numbers the user can input within a
certain range (standard formatter stuff).
This works wonderfully, with one very odd exception. I'll set a minimum
and a maximum (for example in one of them it is 8 and 128) and this
works just fine (it won't allow the user to enter 4 or 300, for example)
*with the exception of zero!* Zero can be entered despite the fact that
it is below the minimum. This happens with all my formatters/text fields.
In the attributes of the formatter in IB, I have (using the one
mentioned above as example):
Positive: #,##0
Zero: 0
Negative: -#,##0
Minimum: 8
Maximum: 128
And "Add 1000 separators" is checked (doesn't matter in this case of
course, but I guess it's checked by default) as is "Localize".
I've searched the archives and found no mention of this, so there must
be something wrong with what I am doing... Any ideas?
Thanks,
Andreas Schwarz
http://homepage.mac.com/schwarz
_______________________________________________
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.