discuss-gnustep
[Top][All Lists]
Advanced

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

Bug or feature? NSApp runModalSession


From: Marko Riedel
Subject: Bug or feature? NSApp runModalSession
Date: Mon, 17 Feb 2003 16:25:58 +0100 (CET)

Hi folks,

I am using Apple's Cocoa documentation, which says this about
NSApplication's runModalSession:

Runs a modal session represented by session, as defined in a previous
invocation of beginModalSessionForWindow:. A loop using this method is
similar to a modal event loop run with runModalForWindow:, except with
this method the application can continue processing between method
invocations. When you invoke this method, events for the NSWindow of
this session are dispatched as normal. This method returns when there
are no more events. You must invoke this method frequently enough that
the window remains responsive to events.

The GNUstep implementation is different: IT DOES NOT RETURN
IMMEDIATELY when there are no events for the window. It waits
instead. The only way I can get it to return is to generate a few
MouseMoved-Events by moving the mouse.

I have noticed that GNUmail has code that uses runModalSession to
display a wait panel, which is sort of what I am trying to do. The
code is commented out, however. Does this mean runModalSession is not
working?

I could write my own event loop but I would rather not re-invent the
wheel.

This is my setup:

drwxrwxr-x    6          4096 Feb 17 15:02 gnustep-back-0.8.1
-rw-------    1        305154 Feb 17 14:56 gnustep-back-0.8.1.tar.gz
drwxrwxr-x   13          4096 Feb 17 14:58 gnustep-base-1.5.0
-rw-------    1       1481162 Feb 17 14:56 gnustep-base-1.5.0.tar.gz
drwxrwxr-x    3          4096 Jun 29  2002 gnustep-examples-0.9.7
-r-xr-xr-x    1        228587 Aug 29 15:05 gnustep-examples-0.9.7.tar.gz
drwxrwxr-x   14          4096 Feb 17 14:03 gnustep-gui-0.8.1
-rw-------    1       2021246 Feb 17 14:56 gnustep-gui-0.8.1.tar.gz
drwxrwxr-x    5          4096 Aug 29 15:10 gnustep-make-1.4.0
-r-xr-xr-x    1        312564 Aug 29 15:05 gnustep-make-1.4.0.tar.gz
drwxrwxr-x    5          4096 Feb 17 15:10 gnustep-objc-1.2.2
-rw-------    1        119390 Feb 17 15:09 gnustep-objc-1.2.2.tar.gz

Best regards,

-- 
+------------------------------------------------------------+
| Marko Riedel, EDV Neue Arbeit gGmbH, mriedel@neuearbeit.de |
| http://www.geocities.com/markoriedelde/index.html          |
+------------------------------------------------------------+




reply via email to

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