Re: Focus problem while launching app from the widget
Re: Focus problem while launching app from the widget
- Subject: Re: Focus problem while launching app from the widget
- From: Uli Kusterer <email@hidden>
- Date: Sat, 8 Apr 2006 15:15:18 +0200
Am 08.04.2006 um 08:32 schrieb Grzegorz Kopel:
[[NSWorkspace sharedWorkspace]
launchAppWithBundleIdentifier:@"my.app.identifier"
options:NSWorkspaceLaunchWithoutActivation
additionalEventParamDescriptor:nil
launchIdentifier:NULL];
(...)Does anybody know how to launch external application in the
background, keeping the focus in dashboard widget at the same time?
Can't really guarantee it'll work, but I've had good luck working
around other activation problems in another application using Launch
Services APIs directly instead of NSWorkspace. The latter seems to
insist on giving any app it launches keyboard focus, even if it's a
background-only daemon...
Cheers,
-- M. Uli Kusterer
http://www.zathras.de
_______________________________________________
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