Re: launchd agents
Re: launchd agents
- Subject: Re: launchd agents
- From: Uli Kusterer <email@hidden>
- Date: Sun, 12 Nov 2006 19:54:19 +0100
Am 12.11.2006 um 16:30 schrieb Keith Duncan:
NSTask *app = [NSTask launchedTaskWithLaunchPath:@"/usr/bin/open"
arguments:[NSArray arrayWithObjects:@"-a", appPath, nil]];
Is there anyway to launch the app directly (without using /usr/bin/
open) so that I can retain a handle on it and terminate it after a
timeout?
What have you tried? You should be able to just pass the path of
your app's executable directly, and an empty param array. Or even
better, use NSWorkspace's launchApplication: method.
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