Re: Tuning KVO validation.
Re: Tuning KVO validation.
- Subject: Re: Tuning KVO validation.
- From: Óscar Morales Vivó <email@hidden>
- Date: Wed, 25 Feb 2004 14:42:07 +0100
And I don't have anything against that behaviour, as I already
understood why it is set so. I just want to be able to specify the one
I want too.
On 25 Feb 2004, at 14:29, Allan Odgaard wrote:
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.