• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Customizing how errors are presented
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Customizing how errors are presented
      • From: Jerry Krinock <email@hidden>
  • Prev by Date: Strange 'DrawTheMenu' crash
  • Next by Date: Re: super call in the middle of a block of code ..
  • Previous by thread: Strange 'DrawTheMenu' crash
  • Next by thread: Re: Customizing how errors are presented
  • Index(es):
    • Date
    • Thread