• 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: Daemons!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Daemons!


  • Subject: Re: Daemons!
  • From: email@hidden
  • Date: Sat, 26 Jan 2002 23:50:45 -0500

On Saturday, January 26, 2002, at 10:23 PM, Isaac Sherman wrote:

How would I go about creating a faceless application? No icon in the dock,
no windows? I would have done it as an extension in Classic, but how would
I go about it in OS X? If anyone knows where I can find documentation about
this (or, even better, example code), please, let me know.

How about:

int main ()
{
doYourAppStuff ();
return 0;
}

Faceless, no icon, no dock. Plain vanilla C programs fit the bill, there's nothing special
about interface-less applications on OSX. Apple has a code sample called MyFirstDaemon
at:

http://developer.apple.com/samplecode/Sample_Code/Processes/MyFirstDaemon.
htm

but it doesn't really do anything except demonstrate the use of the syslog and daemon calls. Hmm, look at that URL - is Apple using IIS and MSFrontPage to maintain its developer web pages??!!?!? EWWWW!!!

Hope that helps,

email@hidden


  • Follow-Ups:
    • Re: Daemons!
      • From: Fabrice Truillot <email@hidden>
    • Re: Daemons!
      • From: "Clark S. Cox III" <email@hidden>
References: 
 >Daemons! (From: Isaac Sherman <email@hidden>)

  • Prev by Date: Re: [OT] An array of C-Strings
  • Next by Date: Re: [OT] An array of C-Strings
  • Previous by thread: Daemons!
  • Next by thread: Re: Daemons!
  • Index(es):
    • Date
    • Thread