Customizing how errors are presented
Customizing how errors are presented
- Subject: Customizing how errors are presented
- From: Dado Colussi <email@hidden>
- Date: Fri, 19 Feb 2010 16:55:04 +0100
I would like to customize how errors in controls like NSTextField
are presented. The documentation for NSResponder recommends overriding
-willPresentError: in order to customize error presentation. However, that
doesn't let me customize *how* the error will be presented to the user. I am
unhappy with the alerts because they interfere with the interaction by
demanding immediate user attention.
For NSTextFields, for example, I would like to experiment with presenting
errors by changing the text field's text color, background color, or focus
ring color and maybe showing an icon inside the text field, and maybe
something else, too. Whatever invalid data should remain visible in the text
field for later editing, and only valid data should be passed on to the
model. Committing changes should be possible when no control has errors.
What is the best way of achieving that?
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden