bug-gnustep
[Top][All Lists]
Advanced

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

[bug #34789] performSelector:withObject:afterDelay not working while a s


From: julian
Subject: [bug #34789] performSelector:withObject:afterDelay not working while a sheet is displayed
Date: Mon, 14 Nov 2011 14:14:16 +0000
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_6_8) AppleWebKit/534.51.22 (KHTML, like Gecko) Version/5.1.1 Safari/534.51.22

Follow-up Comment #3, bug #34789 (project gnustep):

sorry for forgetting to attach the example - of course i deleted it by now and
had to recreate it - attached.

i see you are right that it isn't supposed to work - unless there is somehow
more to it the documentation would indicate that the main run loop is paused.

however, this is not what is happening on Mac OS X.

the main run loop is paused when something *completely modal* is done like 
[NSApplication runModalForWindow:], you can't interact with any other windows
of the app anymore and the main runloop is paused.

other methods like 
beginSheet:modalForWindow
or
presentError:modalForWindow 
that present a window that is modal just for a single window don't seem to
block the main run loop and also let you interact with other windows, just not
the blocked one.

its a bit confusing that all these methods have modalForWindow: in their name
while in the first case this is the window that is presented modally, blocking
everything else, while for  the methods in the second class, the window
parameter is not the presented window, but rather the only window that will be
blocked.

anyway, since this is not completely clear from the documentation, i could
understand not wanting to "fix" anything here.

will file a bug at apple about the documentation not matching reality now.

(file #24370)
    _______________________________________________________

Additional Item Attachment:

File name: gnustepbug-perform.zip         Size:119 KB


    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?34789>

_______________________________________________
  Nachricht geschickt von/durch Savannah
  http://savannah.gnu.org/




reply via email to

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