Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: launchd agents



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:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden
References: 
 >launchd agents (From: Keith Duncan <email@hidden>)
 >Re: launchd agents (From: "Finlay Dobbie" <email@hidden>)
 >Re: launchd agents (From: Keith Duncan <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.