[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
NSWorkspace launchApplication problem
From: |
Andreas Höschler |
Subject: |
NSWorkspace launchApplication problem |
Date: |
Tue, 14 Aug 2007 00:29:10 +0200 |
Hello all,
since I encountered focus problems with GNUstep I did some tests:
• I added a menu item "Test" to Finder.app and implemented the
corresponding method as follows:
- (void)test:(id)sender
{
BOOL result = [[NSWorkspace sharedWorkspace]
launchApplication:@"SOObjectBrowser"];
NSLog(@"result %d", result);
}
• I start Finder.app (SOObjectBroswer is not yet running) and click on
the test menu item. SOObjectBrowser.app is started as expected and the
menu (EtoileMenuServer) gets updated correctly.
• I click on a Finder window. Nothing happens. Menu still shows
SOObjectBrowser. That's wrong!!!
• I click on a Terminal.app window. EtoileMenuServer gets updated with
Terminal.
• I click on a Finder window. EtoileMenuServer shows Finder.
• I click on the test menu item again. "result 1" is logged but nothing
happens. EtoileMenuServer still shows Finder while it should have
switched to SOObjectBrowser.
Any idea what we can do about that? This is indeed a show stopper (not
very stable)! :-)
Regards,
Andreas
- NSWorkspace launchApplication problem,
Andreas Höschler <=