Re: Displaying an alert box
Re: Displaying an alert box
- Subject: Re: Displaying an alert box
- From: Rainer Brockerhoff <email@hidden>
- Date: Mon, 15 Oct 2001 16:43:02 -0200
Date: Mon, 15 Oct 2001 12:56:17 +0200
From: Marc Laffitte <email@hidden>
You may also force your app be the front one with:
[NSApp activateIgnoringOtherApps:YES];
However, the user may NOT apreciate: If he is typing some text, which is
a common task on a computer, he may type Return, just for a new line. If
at that moment some other app displays an alert, with a default button
OK / Return while the user is looking either at his keyboard or at some
paper, he will dismiss that alert, just seeing that something happend,
but not knowing what exactly... Or the text he is typing will go to
nowhere , ie to the new front window...
Such things happen regularily on Windows based computers and is really
annoying. I don't think Windows UI practices should be considered as a
good example ;-)
<rant>
Internet Explorer does this #$%^&* thing regularly, popping up new
windows in front of you while you're typing, or selecting a popup
menu from a window, or whenever it's least convenient for the user. I
can't wait to get rid of it.
One other #$%^&* annoyance, for which there should be a system-wide
override preference for turning it off, is click-through on controls.
I just lost a 16-hour download of the 10.1 developer tools after
clicking by mistake in the vicinity of Omniweb's "stop Download"
button while it was hidden beneath other windows... there's not even
a confirmation dialog for the thing.
</rant>...grrhhh...<cold shower>...</cold shower>
Well, all I can say is that [NSApp activateIgnoringOtherApps:YES]
should be used only in response to some user action regarding your
application - like dragging something onto one of its windows - and
never spontaneously in response to some hidden condition.
--
Rainer Brockerhoff <email@hidden>
Belo Horizonte, Brazil
"Originality is the art of concealing your sources."
http://www.brockerhoff.net/ (updated Oct. 2001)