bugGNUstep - Bugs: bug #12535, Cannot type into window while...

Group
 
 

bug #12535: Cannot type into window while using [NSApp runModalSession:]

Submitter:  Gregory John Casamento <gcasa>
Submitted:  Sun 03 Apr 2005 10:53:36 AM UTC
   
 
Category:  Gui/AppKit Severity:  3 - Normal
Item Group:  Bug Status:  Invalid
Privacy:  Public Assigned to:  None
Open/Closed:  Closed
* Mandatory Fields

Add a New Comment Rich Markup
   

Fri 08 Apr 2005 12:01:04 AM UTC, comment #1: 

From what I can tell, the whole problem only exists because the main run loop is never started. If you put the modal session in a method started from the main menu it works great.

I would say that this happens because the window is not really made key window in beginModalSessionForWindow and this is because the NSApplication will only start to get notifications from windows after the dependency has been set up in  finishLaunching. (And also is made active) So the NSApp will never know that the window thinks itself to be the keyWindow.

Fred Kiefer <FredKiefer>
Group Member
Sun 03 Apr 2005 10:53:36 AM UTC, original submission:  

The attached code was given to me by someone as a demonstration of a bug on IRC.

Build the attached as an application and, while running, attempt to type into the window.  The author claimed that the usleep call was necessary to prevent the application from crashing the X Server, but I've commented it out and I don't see an issue.

As you can see from the attached jpgs, it is possible to type into the window under the Mac, but you can't on GNUstep. 

You can ignore the delegate and menu code, since [NSApplication run] is never called, the delegate methods will never be invoked.

Gregory John Casamento <gcasa>
Group administrator

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

Attached Files
file #2829:  modalgs.jpg added by gcasa (6KiB - image/jpeg - Shows on GNUstep after attempting to type)
file #2825:  modalbug.jpg added by gcasa (49KiB - image/jpeg - Shows on mac.)
file #2824:  gnustep-modal-bug.m added by gcasa (2KiB - application/octet-stream - Source code demonstration)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by gcasa (Updated the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 5 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2008-01-16 gcasa StatusNone Invalid
        Open/ClosedOpen Closed
    2005-04-03 gcasa Attached File- Added modalgs.jpg, #2375
    2005-04-03 gcasa Attached File- Added modalbug.jpg, #2374
    2005-04-03 gcasa Attached File- Added gnustep-modal-bug.m, #2373

    Back to the top

    Powered by Savane 3.13-758e.
    Corresponding source code