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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to