Skip navigation.
 
mlRe: Cocoa daemon
FROM : Ivan C Myrvold
DATE : Fri Aug 01 14:17:58 2008

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_%28computer_software%29
>
> 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_removed>)
>>
>> 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:
>> http://lists.apple.com/mailman/options/cocoa-dev/<email_removed>
>>
>> This email sent to <email_removed>

>
> Amin Negm-Awad
> <email_removed>
>
>
>
>
>

Related mailsAuthorDate
mlCocoa daemon Ivan C Myrvold Aug 1, 12:11
mlRe: Cocoa daemon Negm-Awad Amin Aug 1, 12:32
mlRe: Cocoa daemon Ivan C Myrvold Aug 1, 14:17
mlRe: Cocoa daemon Geoff Beier Aug 1, 14:24
mlRe: Cocoa daemon Daniel Richman Aug 1, 16:28
mlRe: Cocoa daemon Jens Alfke Aug 1, 21:28
mlRe: Cocoa daemon Charles Srstka Aug 1, 21:52
mlRe: Cocoa daemon Negm-Awad Amin Aug 2, 08:58