bug-gnustep
[Top][All Lists]
Advanced

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

[bug #4410] NSDocumentController's -application:openFile: can't work


From: nobody
Subject: [bug #4410] NSDocumentController's -application:openFile: can't work
Date: Tue, 22 Jul 2003 07:54:36 -0400
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.2) Gecko/20030208 Netscape/7.02

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

Changes by: Enrico Sersale <enrico@dtedu.net>
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/





reply via email to

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