> ...  When the user enters a value into the text field, the
> WOAssociation sets the value on the EO immediately after the form is
> submitted.  This has the unwanted side effect which results in
> validateTakeValue:forKeyPath: getting called immediately thereafter. ...

If you are using a WODisplayGroup, you might be able to turn this behavior
off. Look at setValidatesChangesImmediately: method. I believe you can also
change this flag using WOBuilder.
For AppKit applications you can turn off this behavior in the display group
(Validates immediately) inspector in IB.

Anyway, I think it is a good idea to use validateKey: methods for
"immediate validation". If you want to validate a field at save time, you
can use validateForSave or one of those methods. That way, your EO has
control as to when things should be validated.

Carlos Parada
PSW Technologies
Austin, TX

Reply via email to