launchApplication
launchApplication
- Subject: launchApplication
- From: "Gerriet M. Denkmann" <email@hidden>
- Date: Wed, 21 Nov 2001 19:57:28 +0100
When I do:
[[NSWorkspace sharedWorkspace] launchApplication: @"OtherApp" ];
followed by:
[NSConnection rootProxyForConnectionWithRegisteredName:@"OtherApp" host:
nil ]
this will not work, if MyApp is not already running.
Obviously launchApplication returns immediately without waiting for
MyApp to complete launching.
Then I tried:
[ [NSWorkspace sharedWorkspace ] notificationCenter] addObserver
..NSWorkspaceDidLaunchApplicationNotification object: nil]
but this send a message, when this app finished launching, but nothing
after launching of OtherApp.
What to do? How do I find out if and when OtherApp is ready to open a
connection?
Gerriet.