Re: Display an Alert Sheet at a Specified Screen Position
Re: Display an Alert Sheet at a Specified Screen Position
- Subject: Re: Display an Alert Sheet at a Specified Screen Position
- From: Graham Cox <email@hidden>
- Date: Fri, 27 Mar 2015 11:10:44 +1100
> On 27 Mar 2015, at 10:45 am, Quincey Morris <email@hidden> wrote:
>
> Without knowing more context, I’m not sure NSPopover is the right thing either. If not, it probably ought to be some kind of custom NSPanel.
One situation I think would be a suitable candidate for a custom-positioned alert (or popover) is when a text field fails validation. At the moment, there's little support for handling this gracefully - I think the default response is to beep and refuse losing first responder status. It's pretty poor, in that it doesn't give the user any clue as to what they've done wrong, and beeping is such a passive-aggressive means of signalling a problem - "You're a moron, but try and guess why, ha-ha!".
A nicely positioned alert with a popover-style triangle that indicates the field in question with some explanation of the problem would be a lot better. I could be staged, so that it only appears on the second fail, etc. Of course some way to turn it off would also be needed, so that a user who has got used to the various reasons for failure won't be bombarded with messages when a beep is sufficient to remind them.
Of course I've no idea whether this is what the OP's requirement is, he doesn't say.
--Graham
_______________________________________________
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