Daemon application with System Preferences Pane

  • Hi guys,

    I'm planning on developping a daemon app whose preferences are set in
    a system preferences pane. This is the first time I have to develop
    such a project and I don't know where to start.

    So, here I come !

    - What kind of project should I use for my daemon ? What am I supposed
    to do to create en app with no dock icon ?
    - Should I have two separated projects for the daemon and the
    preferences pane or only one, with two targets ?
    - I'd like my preferences pane to update some informations when the
    daemon is running (the way .Mac pane works) and, of course, when a
    preference is set in the pane, the daemon needs to accordingly. What
    is the best way to achieve this ? Can my daemon "communicate" with the
    pane in some way ?

    Thanks a lot by advance for your help,

    Eric.
  • On 09/01/2008, Eric MORAND <eric.morand...> wrote:
    > Hi guys,
    >
    > I'm planning on developping a daemon app whose preferences are set in
    > a system preferences pane. This is the first time I have to develop
    > such a project and I don't know where to start.
    >
    > So, here I come !
    >
    > - What kind of project should I use for my daemon ? What am I supposed
    > to do to create en app with no dock icon ?
    > - Should I have two separated projects for the daemon and the
    > preferences pane or only one, with two targets ?
    > - I'd like my preferences pane to update some informations when the
    > daemon is running (the way .Mac pane works) and, of course, when a
    > preference is set in the pane, the daemon needs to accordingly. What
    > is the best way to achieve this ? Can my daemon "communicate" with the
    > pane in some way ?
    >

    Have you tried,
    <http://developer.apple.com/documentation/MacOSX/Conceptual/BPSystemStartup/
    Articles/DesigningDaemons.html
    >?

    [7th hit for the word "daemon" on developer.apple.com, similar results
    for say "preference pane"]

    Cheers,
    -H.
  • On Jan 10, 2008, at 8:01 AM, Herb Petschauer wrote:

    > On 09/01/2008, Eric MORAND <eric.morand...> wrote:
    >> Hi guys,
    >>
    >> I'm planning on developping a daemon app whose preferences are set in
    >> a system preferences pane. This is the first time I have to develop
    >> such a project and I don't know where to start.
    >>

    there is an apple's sample code about preferences pane
    http://developer.apple.com/samplecode/PrefsPane/index.html

    >> So, here I come !
    >>
    >> - What kind of project should I use for my daemon ? What am I
    >> supposed
    >> to do to create en app with no dock icon ?
    >>

    --to create an app with no dock icon, refer to:
    http://forums.macosxhints.com/archive/index.php/t-7193.html
    add a key-value (NSUIElement = 1) to the info.plist, key is
    NSUIElement and value "1" is a string type

    >> - Should I have two separated projects for the daemon and the
    >> preferences pane or only one, with two targets ?
    >> - I'd like my preferences pane to update some informations when the
    >> daemon is running (the way .Mac pane works) and, of course, when a
    >> preference is set in the pane, the daemon needs to accordingly. What
    >> is the best way to achieve this ? Can my daemon "communicate" with
    >> the
    >> pane in some way ?
    >>
    >
    > Have you tried,
    > <http://developer.apple.com/documentation/MacOSX/Conceptual/
    > BPSystemStartup/Articles/DesigningDaemons.html>?
    >
    > [7th hit for the word "daemon" on developer.apple.com, similar results
    > for say "preference pane"]
    >
    > Cheers,
    > -H.
    >

    =============================================
    Qi Liu
    E-Mail: <qliu...>
    --Stay Hungry. Stay Foolish.
    --You've got to find what you love.
    =============================================
previous month january 2008 next month
MTWTFSS
  1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30 31      
Go to today