Re: Tuning KVO validation.
Re: Tuning KVO validation.
- Subject: Re: Tuning KVO validation.
- From: Allan Odgaard <email@hidden>
- Date: Wed, 25 Feb 2004 14:29:11 +0100
On 25. Feb 2004, at 14:19, Sscar Morales Vivs wrote:
As it stands now, you just keep typing (although the model doesn't get
updated as it doesn't validate) and it displays a message when you
exit the field by whatever means.
There is a reason for this behaviour. Imagine your application accepts
a phone number in the form "xx xx xx xx xx" where xx is 00-99. I may
have "+45 35 82 11 12" on my pasteboard, and I wish to paste that in
the text field and then remove the +. By your logic I should not be
allowed to paste the (invalid) phone number.
There exists many similar cases where the user would temporarily need
to have invalid data in the field -- imagine "1" is in the field and I
want to change it to "2", I may (for whatever reason) prefer to do that
by typing "2" followed by <delete>. This again would not be allowed in
your application.
So as fancy as "instant validation" may seem, it is often a burdon for
the end-user :)
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.