Re: Launch another app without losing focus
Re: Launch another app without losing focus
- Subject: Re: Launch another app without losing focus
- From: Ryan Britton <email@hidden>
- Date: Tue, 13 Jun 2006 06:58:30 -0700
Is there any reason you can't use the launch option
NSWorkspaceLaunchWithoutActivation?
Combine it with this: http://developer.apple.com/documentation/Cocoa/
Reference/ApplicationKit/Classes/NSWorkspace_Class/Reference/
Reference.html#//apple_ref/occ/instm/NSWorkspace/
launchAppWithBundleIdentifier:options:additionalEventParamDescriptor:lau
nchIdentifier:
On Jun 12, 2006, at 11:13 PM, Mike Kobb wrote:
Greetings,
I'm working on a little project that is a System Preferences pane
which controls a server.
One of the things the pane may do is to launch a faceless
background "helper" application. I'm doing this like so:
[[NSWorkspace sharedWorkspace] launchApplication:helperPath];
helperPath is the path to my helper app.
This works great, but when I do this, the System Preferences main
window becomes inactive, and I have to click the window to have it
become active again.
Is there a different way to launch an app like this so that I don't
lose activation?
Thanks!
--Mike
_______________________________________________
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
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
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