Thanks James,
I wrote a subclass of NSNumberFormatter. It works like a charm.
-Cheers,
Abhinay
On Feb 19, 2010, at 1:15 PM, James Walker wrote:
> On 2/18/2010 2:18 PM, Abhinay Kartik Reddyreddy wrote:
>
>> I was wondering if there is any alternative / better approach
>> for validating text in
On 2/18/2010 2:18 PM, Abhinay Kartik Reddyreddy wrote:
I was wondering if there is any alternative / better approach
for validating text in a textfield??
I've done this by writing a custom subclass of NSFormatter that
overrides isPartialStringValid:newEditingString:errorDescription:.
--
I have a NSTextField which should only accept numbers in a certain range say
(-72000.00 to 72000.00).
I tried using NSFormatter whihc worked partially. when i hit any alphabet
character on the keyboard, the value in the NSTextField stays numeric but the
cursor moves forward which is not desire