bug-gnustep
[Top][All Lists]
Advanced

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

[bug #4066] NSWorkspace launchApplicaion: misbehaved


From: nobody
Subject: [bug #4066] NSWorkspace launchApplicaion: misbehaved
Date: Sun, 22 Jun 2003 06:36:30 -0400
User-agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X; en) AppleWebKit/74 (KHTML, like Gecko) Safari/74

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

Changes by: Chad Hardin <cehardin@mac.com>
Date: Sun 06/22/2003 at 10:36 (GMT)

------------------ Additional Follow-up Comments ----------------------------

Well, I do "#1" in my dock.app, I launch apps "just for fun"
What I do is wait for 30 seconds, if I don't get a 
NSWorkspaceDidLaunchApplicationNotification, then I assume the App did not 
launch an act appropriately.

The Dock in OS X does the exact same thing AFAIK, the AppIcon just keeps on 
bouncing until it gets the NSWorkspaceDidLaunchApplicationNotification.  After 
a certain amount of time the Dock just assumes the App did not start.

So...  the implementation seems correct, just wait for the proper notification.



=================== BUG #4066: FULL BUG SNAPSHOT ===================


Submitted by: stefanu                 Project: GNUstep                      
Submitted on: Sat 06/21/2003 at 23:52
Category:  Gui/AppKit                 Severity:  5 - Major                  
Bug Group:  Bug                       Resolution:  None                     
Assigned to:  None                    Status:  Open                         

Summary:  NSWorkspace launchApplicaion: misbehaved

Original Submission:  NSWorkspace launchApplication:'name' does not behave as 
it should. 

>From apple docs:

Returns YES if the application is successfully launched...

However, it seems to return immediately after running application process. I 
think that application is 'successfulyl lanchued' when all app initialisation 
priocess ends and app's delegate receives applicationDidFinishLaunching: 
notification. Or ... application is sucessfully launched when i can connect to 
it. I wouls expect this method to wait for all application initialisation and 
for some distant notification about successfull launch.

Current misbehaviour requires workarounds to make it work.


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

-------------------------------------------------------
Date: Sun 06/22/2003 at 10:36       By: cehardin

Well, I do "#1" in my dock.app, I launch apps "just for fun"
What I do is wait for 30 seconds, if I don't get a 
NSWorkspaceDidLaunchApplicationNotification, then I assume the App did not 
launch an act appropriately.

The Dock in OS X does the exact same thing AFAIK, the AppIcon just keeps on 
bouncing until it gets the NSWorkspaceDidLaunchApplicationNotification.  After 
a certain amount of time the Dock just assumes the App did not start.

So...  the implementation seems correct, just wait for the proper notification.

-------------------------------------------------------
Date: Sun 06/22/2003 at 09:56       By: stefanu
I disagree and I would like to open this to discussion.

Ask a question: Why would you like to launch an application in most of the 
cases?

1. Just to launch it and let it be launched ('just for fun')
or
2. Launch it and do something with it

I think that 2. is the case. Then I think if OS/X behaves same as gnustep at 
this time, then the behaviour is wrong. This method should wait until I can 
communicate with the application, that means, the method should wait until the 
application is successfully lanched.


-------------------------------------------------------
Date: Sun 06/22/2003 at 09:07       By: CaS
I've just spent a couple of hours checking this.
The current GNUstep behavior appears to be the same as the MacOS-X and OpenStep 
behavior ... ie the interpretation of the word 'launched' means that a process 
was started, not that it is completely initialised/working.  I have updated the 
documentation to be (I hope) clearer about this than the MacOS-X documentation.


CC list is empty


No files currently attached


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

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





reply via email to

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