• 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: Trygve Inda <email@hidden>
  • Date: Wed, 02 Apr 2008 15:36:46 +0000
  • Thread-topic: prefPane with background process

> Hi,
>
> I want to create a service which can be launched from the system
> preferences, do some config setting and continue working even if the system
> preferences application is closed.
> To achieve this, I have created a myapp.prefPane which is of type BUNDLE and
> installed this in the ~/Library/PreferencePanes. This works fine but the
> problem is, it does not indicate any extra process for my .prefPane. When my
> prefPane is launched, only "system preferences" process is indicated. When
> system preferences is closed it also closes my service which was not
> expected.
> 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 need to create two apps. The prefpane will handle the GUI and user
settings, the background app will read the settings created by the prefPnae
and do the real work. You will need to setup some sort of IAC system for
them to talk to each other.

Place the worker.app inside the resources folder of your prefpane and have
the prefpane launch it (or set it up as a login item).

To make sure the worker app does not show up in the dock add this to its
info.plist:

 <key>NSUIElement</key>
 <string>1</string>

Cheers,

Trygve


_______________________________________________

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: prefPane with background process
      • From: Jens Alfke <email@hidden>
References: 
 >prefPane with background process (From: "Yogesh Potdar" <email@hidden>)

  • Prev by Date: Re: Subviews of a borderless window - autoresizing mask does not work for me
  • Next by Date: Re: Problem with Grouping the rotated object.
  • Previous by thread: Re: prefPane with background process
  • Next by thread: Re: prefPane with background process
  • Index(es):
    • Date
    • Thread