Re: Cocoa daemon
Re: Cocoa daemon
- Subject: Re: Cocoa daemon
- From: Ivan C Myrvold <email@hidden>
- Date: Fri, 1 Aug 2008 14:17:58 +0200
I try to implement the menu in the NSStatusBar systemStatusBar.
I would appreciate if anyone have any hint as to why the menu will not
drop down, and show the menu items.
Must be something I am missing here.
Ivan
Den 1. aug.. 2008 kl. 12:32 skrev Negm-Awad Amin:
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