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 (Cocoa-dev@lists.apple.com)
> 
> 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:
> http://lists.apple.com/mailman/options/cocoa-dev/karthikreddy09%40gmail.com
> 
> This email sent to karthikredd...@gmail.com

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to