Re: Real-Time Validation in a NSTextField.
Re: Real-Time Validation in a NSTextField.
- Subject: Re: Real-Time Validation in a NSTextField.
- From: Abhinay Kartik Reddyreddy <email@hidden>
- Date: Mon, 22 Feb 2010 18:23:44 -0500
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 a textfield??
>
> I've done this by writing a custom subclass of NSFormatter that overrides isPartialStringValid:newEditingString:errorDescription:.
>
> --
> James W. Walker, Innoventive Software LLC
> <http://www.frameforge3d.com/>
> _______________________________________________
>
> Cocoa-dev mailing list (email@hidden)
>
> Please do not post admin requests or moderator comments to the list.
> Contact the moderators at cocoa-dev-admins(at)lists.apple.com
>
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden