Focus problem while launching app from the widget
Focus problem while launching app from the widget
- Subject: Focus problem while launching app from the widget
- From: Grzegorz Kopel <email@hidden>
- Date: Sat, 8 Apr 2006 08:32:52 +0200
Hello,
I'd like to launch an external application from the widget but want
this application to stay in the background. At the same time I'd like
to keep the focus on my widget. I use the following code in my widget
plug-in to launch the external app:
[[NSWorkspace sharedWorkspace]
launchAppWithBundleIdentifier:@"my.app.identifier"
options:NSWorkspaceLaunchWithoutActivation
additionalEventParamDescriptor:nil
launchIdentifier:NULL];
This code works as supposed, i.e. the app is launched in the
background and the Dashboard environment is on the foreground.
However the focus is "below" Dashboard: I can see that when I type on
the keyboard -- the keyboard events are being sent to OS environment,
not to the Dashboard. As my widget is supposed to wait for the
keyboard events, I must click on it to make it active again.
Does anybody know how to launch external application in the
background, keeping the focus in dashboard widget at the same time?
Best regards,
Gregory.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden