I have a text field which is validated whenever it loses focus. I want to be able to indicate that the value invalid during input so the user has the opportunity to correct their mistake before explicitly moving focus away from the box and triggering validation.
I have seen various implementations, including placing a red border round the field, a little icon that comes up for invalid input, or a bit of warning text.
What is the best way to do this in a way that complies with the conventions of Cocoa and the Apple Human Interface Guidelines?