• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: launchd agents
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


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

  • Prev by Date: Re: NSColor to CGColor
  • Next by Date: Re: Installing carbon event handlers into a cocoa application
  • Previous by thread: Re: launchd agents
  • Next by thread: NSSlider with 2 sliders
  • Index(es):
    • Date
    • Thread