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

Re: Cocoa daemon


  • Subject: Re: Cocoa daemon
  • From: "M. Uli Kusterer" <email@hidden>
  • Date: Wed, 19 Nov 2003 03:22:08 +0100

At 21:38 Uhr -0800 12.11.2003, Christopher Corbell wrote:
1) Is it possible for an app to change state in this regard?
E.g. could a regular Cocoa app with icon in the dock be switched
into daemon mode, so that its main process keeps running but its
UI and dock icon go away?

Not as of 10.2. I haven't done any further research on this since 10.2, though.

2) If the app is created as a daemon but contains AppKit,
can it still (say, responding to an AppleEvent) come to the
foreground, put up a menu bar & UI, etc?

I don't think your application can put up a menu bar, but I think it *can* show a dialog. Utility windows work, I know that since I'm doing that and it's going fine. However, if you really need that, I suggest you create a regular helper application, embed it into your daemon's bundle and launch that when you need a full-blown GUI.
--
Cheers,
M. Uli Kusterer
------------------------------------------------------------
"The Witnesses of TeachText are everywhere..."
http://www.zathras.de
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
References: 
 >Cocoa daemon (From: Kris Kopicki <email@hidden>)
 >Re: Cocoa daemon (From: Phillip Hutchings <email@hidden>)
 >Re: Cocoa daemon (From: Christopher Corbell <email@hidden>)

  • Prev by Date: Re: Launch crash in strstr... what gives?
  • Next by Date: Re: Preventing screen-saver from triggering ?
  • Previous by thread: Re: Cocoa daemon
  • Next by thread: Re: Cocoa daemon
  • Index(es):
    • Date
    • Thread