• 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
Helper tool
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Helper tool


  • Subject: Helper tool
  • From: "Gerriet M. Denkmann" <email@hidden>
  • Date: Fri, 13 Sep 2013 20:47:11 +0700

I have a helper tool (started via SMJobBless from the main app).

Its launchd.plist contains (no idea why, probably I copied this from some sample code):
LaunchOnlyOnce = YES
RunAtLoad = YES
OnDemand = NO

The problem: it runs even when the the main app has never asked it to run.
Obviously it gets started automatically on login (or even directly after reboot?).

This is not necessary.
If it is not running, the main app should start it via SMJobBless.
If it quits (or crashes) the main app may start it again (no automatic restart necessary).

What launchd options are needed for this?


Another question:

[NSRunningApplication runningApplicationsWithBundleIdentifier: @"name of helper tool" ]
returns an empty array.
But Activity Monitor shows "name of helper tool"  as running and my main app can communicate with it.
Is there some other way to find out whether it is running?

In the case that the main app cannot communicate with it (because something might be screwed up) I want to know whether it has died or not.

Gerriet.


_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden


  • Follow-Ups:
    • Re: Helper tool
      • From: Seth Willits <email@hidden>
    • Re: Helper tool
      • From: Charles Srstka <email@hidden>
  • Prev by Date: Re: ARC vs Manual Reference Counting
  • Next by Date: Re: Helper tool
  • Previous by thread: quitting app running in status bar logs this message about some modal session
  • Next by thread: Re: Helper tool
  • Index(es):
    • Date
    • Thread