You want to use either an NSFormatter subclass, or possibly, if using bindings, key-value validation.

On 2 Sep 2008, at 20:29, Joeles Baker wrote:

hi,

is there any easy way to validate a textfield?
my app has a textfield, which should only accept emailaddresses.

before I start reinventing the wheel, it's probably a good idea to ask here. google turned up nothing so far - maybe my searchterms -nstextfield formatter validation email- where wrong?

thanks in advance

--joeles
_______________________________________________

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/cocoadev%40mikeabdullah.net

This email sent to [EMAIL PROTECTED]

_______________________________________________

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 [EMAIL PROTECTED]

Reply via email to