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

 
 

You are not allowed to post comments on this tracker with your current authentication level.

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

Submitted by:  Gregory John Casamento <gcasa>
Submitted on:  Sun 03 Apr 2005 10:53:36 AM UTC  
 
Category: Gui/AppKitSeverity: 3 - Normal
Item Group: BugStatus: Invalid
Privacy: PublicAssigned to: None
Open/Closed: Closed

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>
Project 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>
Project Administrator

 

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
  • -unavailable- added by gcasa (Updated the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 5 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Wed 16 Jan 2008 07:04:42 PM UTCgcasaStatusNone=>Invalid
      Open/ClosedOpen=>Closed
    Sun 03 Apr 2005 10:55:50 AM UTCgcasaAttached File-=>Added modalgs.jpg, #2375
    Sun 03 Apr 2005 10:55:03 AM UTCgcasaAttached File-=>Added modalbug.jpg, #2374
    Sun 03 Apr 2005 10:53:36 AM UTCgcasaAttached File-=>Added gnustep-modal-bug.m, #2373

    Back to the top


    Powered by Savane 3.1-cleanup1