• 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: Negm-Awad Amin <email@hidden>
  • Date: Fri, 1 Aug 2008 12:32:54 +0200

Hi,

I do not think, that a daemon is the right place to implement a UI. It is the definition of an deamon, that it has no UI.
http://en.wikipedia.org/wiki/Daemon_(computer_software)


Build a front-end is the better design.

Cheers


Am Fr,01.08.2008 um 12:11 schrieb Ivan C Myrvold:

I have developed a daemon which is launched by launchd. It have no user interface, other than putting up a status menu with an icon at the status bar.
The menu icon is showing up, but nothing happens when I click it.


NSLog shows that the menu exists, and have items in it. I have the same code for making a status menu in an ordinary Cocoa application, and there I have no such problem.

2008-08-01 11:46:09.073 tansad[10413:10b] rebuildTansaItemMenu 2 tansaMenu: <NSMenu: 0x31fc20>
Title: Tansa
Supermenu: 0x0 (None), autoenable: YES, change messages enabled: YES
Items: (
<MenuItem: 0x3e6bd0 Tansa korrektur (Tansaposten)>,
<MenuItem: 0x3e71f0 Tansa korrektur (The Tansa Times)>,
<MenuItem: 0x3e7330 >,
<MenuItem: 0x3e7410 Tansa orddeling (Tansaposten)>,
<MenuItem: 0x3e7510 Tansa orddeling (The Tansa Times)>,
<MenuItem: 0x3e75f0 Fjern orddelingspunkter>,
<MenuItem: 0x3e7750 >,
<MenuItem: 0x3e78c0 Innstillinger>,
<MenuItem: 0x3e7a30 Hjelp, submenu: 0x3e79c0 (Hjelp)>
)


Ivan
_______________________________________________

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

Amin Negm-Awad email@hidden




_______________________________________________

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: Cocoa daemon
      • From: Ivan C Myrvold <email@hidden>
References: 
 >Cocoa daemon (From: Ivan C Myrvold <email@hidden>)

  • Prev by Date: Cocoa daemon
  • Next by Date: Re: compiler warning for not fully implementing protocol
  • Previous by thread: Cocoa daemon
  • Next by thread: Re: Cocoa daemon
  • Index(es):
    • Date
    • Thread