discuss-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Modal windows


From: Pascal Bourguignon
Subject: Re: Modal windows
Date: Wed, 3 Jul 2002 17:53:33 +0200 (CEST)

> > Certainly I can see that having menus stop working could be a very bad 
> > thing.
> 
> Hmm, but isnt that the point ? You make a window modal so that the user can
> only interact with that window. This ois certainly theOpenSteop behaviour
> and the NextStep behaviour. Its how you make certain actions in an App
> effectively "atomic". I had always assumed it to be a bug too - it can lead
> to many undesireable effects.

On OPENSTEP  4.2 (where I just checked),  runModalForWindow: locks the
menus.  There's no enabling/disabling of the menu, merely, it does not
respond to the mouse events (the menu window can still be moved).

If runModalForWindow: is called from  a menu item action, the selected
menu item  stays highlighted  until a stopModal  or similar  is called
(actually, until the action method returns).




Of course, this behavior (that may  be needed in some occasions) is to
be avoided and preference should be given to non modal panels, because
of this locking nature of modes.

-- 
__Pascal_Bourguignon__                   http://www.informatimago.com/
----------------------------------------------------------------------



reply via email to

[Prev in Thread] Current Thread [Next in Thread]