• 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: prefPane with background process
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: prefPane with background process


  • Subject: Re: prefPane with background process
  • From: Jens Alfke <email@hidden>
  • Date: Wed, 2 Apr 2008 07:59:18 -0700


On 2 Apr '08, at 5:20 AM, Yogesh Potdar wrote:

How to make the service offered by myapp.prefPane continue even after
quitting system preferences? Is there any way by which I can run service
offered by myapp.prefPane in background?

You'll need to create a separate executable that runs as an "agent" (a per-user background process, as opposed to a daemon, which is system- wide.) You can package this inside your pref-pane's bundle, so the user doesn't have to separately install any other pieces.


You probably want the agent to start running when the user logs in, so s/he doesn't have to keep launching System Preferences to start the service every time. The usual way to set this up is to register the agent with launchd by putting a property-list file into ~/Library/ LaunchAgents.

There's a lengthy Apple tech-note on daemons and agents that describes this.
Also check the man page for "launchd.plist" and "launchctl".


—Jens

Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________

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

References: 
 >prefPane with background process (From: "Yogesh Potdar" <email@hidden>)

  • Prev by Date: Re: activate my application while dragging on other application window
  • Next by Date: Re: Need for a creator code?
  • Previous by thread: prefPane with background process
  • Next by thread: Re: prefPane with background process
  • Index(es):
    • Date
    • Thread