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

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.



No Followups Have Been Posted


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