• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Real-Time Validation in a NSTextField.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Real-Time Validation in a NSTextField. (From: Abhinay Kartik Reddyreddy <email@hidden>)
 >Re: Real-Time Validation in a NSTextField. (From: James Walker <email@hidden>)

  • Prev by Date: Re: Core Data: Custom to-many relationship setter not being invoked
  • Next by Date: Re: CGContextEOFillPath not working .. ?
  • Previous by thread: Re: Real-Time Validation in a NSTextField.
  • Next by thread: close: before NSWindowWillCloseNotification
  • Index(es):
    • Date
    • Thread