Obj-C and Background/Daemon Application Question

  • Hello,
    I'm looking for more information on how to create a Background/Daemon
    application. I've been learning Obj-C and I really like it. I have
    bought what books I can on the subject but none of them really cover
    this subject.

    I have written a few tools for myself but now I want to step it up and
    develop a Background/Daemon tool which should run when the system boot
    til it shuts down.

    I have looked at Apple's dev site and at the examples but it feels
    like this is a subject area that they do not cover. So any info sites,
    example code or what every that could help would be great.

    Thanks,
    tom
  • These might help

    http://developer.apple.com/macosx/launchd.html
    http://www.codepoetry.net/products/launchdeditor

    /Edward

    On 16 feb 2008, at 22.07, Tom Jones wrote:

    > Hello,
    > I'm looking for more information on how to create a Background/
    > Daemon application. I've been learning Obj-C and I really like it. I
    > have bought what books I can on the subject but none of them really
    > cover this subject.
    >
    > I have written a few tools for myself but now I want to step it up
    > and develop a Background/Daemon tool which should run when the
    > system boot til it shuts down.
    >
    > I have looked at Apple's dev site and at the examples but it feels
    > like this is a subject area that they do not cover. So any info
    > sites, example code or what every that could help would be great.
    >
    > Thanks,
    > tom
    > _______________________________________________
    > MacOSX-dev mailing list
    > <MacOSX-dev...>
    > http://www.omnigroup.com/mailman/listinfo/macosx-dev
  • On Feb 16, 2008, at 1:07 PM, Tom Jones wrote:

    > I'm looking for more information on how to create a Background/
    > Daemon application. I've been learning Obj-C and I really like it. I
    > have bought what books I can on the subject but none of them really
    > cover this subject.

    "Advanced Mac OS X Programming" does, though I'm not sure how much
    things have changed in Leopard for the launchd stuff:

    http://bignerdranch.com/products.shtml

        - Scott
  • > From: Tom Jones <tjones...>
    >
    > I'm looking for more information on how to create a Background/Daemon
    > application. I've been learning Obj-C and I really like it. I have
    > bought what books I can on the subject but none of them really cover
    > this subject.
    >
    The following Daemons and Agents technical note might provide you with a
    starting point:

    http://developer.apple.com/technotes/tn2005/tn2083.html

    Objective C and Cocoa stuff usually doesn't run as an agent; Cocoa isn't
    considered appropriate.

    You can see Cocoa used to build a UI tool to control the daemon or agent.
  • On Feb 17, 2008, at 2:11 PM, Stephen Hoffman wrote:

    >
    >> From: Tom Jones <tjones...>
    >>
    >> I'm looking for more information on how to create a Background/
    >> Daemon  application. I've been learning Obj-C and I really like it.
    >> I have  bought what books I can on the subject but none of them
    >> really cover  this subject.
    >>
    > The following Daemons and Agents technical note might provide you
    > with a starting point:
    >
    > http://developer.apple.com/technotes/tn2005/tn2083.html
    >
    > Objective C and Cocoa stuff usually doesn't run as an agent; Cocoa
    > isn't considered appropriate.
    >

    Why is that?  I have done plenty of things in Cocoa (no AppKit) that
    run as daemons or background tasks.  What is inappropriate about it?

    Chad

    > You can see Cocoa used to build a UI tool to control the daemon or
    > agent.
  • On Feb 24, 2008, at 4:58 PM, objectwerks inc wrote:

    > Why is that?  I have done plenty of things in Cocoa (no AppKit) that
    > run as daemons or background tasks.  What is inappropriate about it?

    That's explained in that technote, see: "Living Dangerously".

    j o a r
  • Am 24.02.2008 um 18:32 schrieb j o a r:

    > On Feb 24, 2008, at 4:58 PM, objectwerks inc wrote:
    >
    >> Why is that?  I have done plenty of things in Cocoa (no AppKit)
    >> that run as daemons or background tasks.  What is inappropriate
    >> about it?
    >
    > That's explained in that technote, see: "Living Dangerously".

    Foundation is explicitely marked as "daemon-safe" there.

    Markus

    - - - - - - - - - - - - - - - - - - -
    Dipl. Ing. Markus Hitter
    http://www.jump-ing.de/
  • On Feb 24, 2008, at 10:32 AM, j o a r wrote:

    >
    > On Feb 24, 2008, at 4:58 PM, objectwerks inc wrote:
    >
    >> Why is that?  I have done plenty of things in Cocoa (no AppKit)
    >> that run as daemons or background tasks.  What is inappropriate
    >> about it?
    >
    >
    > That's explained in that technote, see: "Living Dangerously".

    I read "Living Dangerously" and don't recall any blanket prohibition
    except connecting to the Window Server

    Chad
  • On Feb 24, 2008, at 10:22 PM, objectwerks inc wrote:

    > I read "Living Dangerously" and don't recall any blanket prohibition
    > except connecting to the Window Server

    If you feel that the technote is unclear, or otherwise needs to be
    improved, I suggest that you file an enhancement request!

    Cheers,

    j o a r
  • On Feb 24, 2008, at 2:22 PM, objectwerks inc wrote:

    >
    > On Feb 24, 2008, at 10:32 AM, j o a r wrote:
    >
    >>
    >> On Feb 24, 2008, at 4:58 PM, objectwerks inc wrote:
    >>
    >>> Why is that?  I have done plenty of things in Cocoa (no AppKit)
    >>> that run as daemons or background tasks.  What is inappropriate
    >>> about it?
    >>
    >>
    >> That's explained in that technote, see: "Living Dangerously".
    >
    >
    > I read "Living Dangerously" and don't recall any blanket prohibition
    > except connecting to the Window Server

    In reality, a bunch of frameworks not listed as safe (from any
    language, not just ObjC) but the common denominator for most of them
    seems to be "connecting to the WindowServer" [see the comment on java]

    There is no prohibition on using Objective-C at all, just frameworks
    that use UI or manipulate graphics, and most of which connect to the
    WindowServer

    Chad
previous month february 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    
Go to today
MindNode
MindNode offered a free license !