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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to