=================== BUG #4410: LATEST MODIFICATIONS ==================
http://savannah.gnu.org/bugs/?func=detailbug&bug_id=4410&group_id=99

Changes by: Enrico Sersale <[EMAIL PROTECTED]>
Date: Tue 07/22/2003 at 14:54 (Europe/Bucharest)

------------------ Additional Follow-up Comments ----------------------------
A similar problem exists in Gorm. This patch fixes it.

--- Gorm.m      2003-07-22 14:50:26.000000000 +0300
+++ Gorm.m_copy 2003-07-22 14:50:47.000000000 +0300
@@ -1242,7 +1242,8 @@
     }
   else
     {
-      [[doc window] makeKeyAndOrderFront: self];
+      [[doc window] orderFrontRegardless];
+      [[doc window] makeKeyWindow];
     }
   
   return (doc != nil);





=================== BUG #4410: FULL BUG SNAPSHOT ===================


Submitted by: esersale                Project: GNUstep                      
Submitted on: Tue 07/22/2003 at 13:23
Category:  Gui/AppKit                 Severity:  5 - Major                  
Bug Group:  None                      Resolution:  None                     
Assigned to:  None                    Status:  Open                         

Summary:  NSDocumentController's -application:openFile: can't work

Original Submission:  If you take a not document-based application, for example 
ImageViewer, you will see that -application:openFile: is implemented in the app 
controller, in this case "AppController.m". 
When the app is not active and an other app or tool calls its -application:openFile: 
through DO, ImageViewer creates a new window and shows it:
 [window orderFrontRegardless];
 [window makeKeyWindow];
 [window display];

this doesn't work for document-based applications, because -application:openFile, 
implemented in NSDocumentController, calls -showWindow: in NSWindowController. And 
NSWindowController's -showWindow: calls -makeKeyAndOrderFront: for its window.
But NSWindow's -makeKeyAndOrderFront: returns without doing anything if, as in this 
case, the app is not active. And the new window is newer shown.

Follow-up Comments
*******************

-------------------------------------------------------
Date: Tue 07/22/2003 at 14:54       By: esersale
A similar problem exists in Gorm. This patch fixes it.

--- Gorm.m      2003-07-22 14:50:26.000000000 +0300
+++ Gorm.m_copy 2003-07-22 14:50:47.000000000 +0300
@@ -1242,7 +1242,8 @@
     }
   else
     {
-      [[doc window] makeKeyAndOrderFront: self];
+      [[doc window] orderFrontRegardless];
+      [[doc window] makeKeyWindow];
     }
   
   return (doc != nil);




CC list is empty


No files currently attached


For detailed info, follow this link:
http://savannah.gnu.org/bugs/?func=detailbug&bug_id=4410&group_id=99

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/



_______________________________________________
Bug-gnustep mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/bug-gnustep

Reply via email to