You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
546 B
30 lines
546 B
10 years ago
|
using System;
|
||
|
using MonoMac.Foundation;
|
||
|
using MonoMac.AppKit;
|
||
|
|
||
|
namespace StatusMenu
|
||
|
{
|
||
|
[Register("AppController")]
|
||
|
public partial class AppController : NSObject
|
||
|
{
|
||
|
public AppController()
|
||
|
{
|
||
|
|
||
|
}
|
||
|
|
||
|
public override void AwakeFromNib()
|
||
|
{
|
||
|
var statusItem = NSStatusBar.SystemStatusBar.CreateStatusItem(30);
|
||
|
statusItem.Menu = statusMenu;
|
||
|
statusItem.Image = NSImage.ImageNamed("f3bfd_Untitled-thumb");
|
||
|
statusItem.HighlightMode = true;
|
||
|
}
|
||
|
|
||
|
partial void HelloWorld(NSObject sender)
|
||
|
{
|
||
|
Console.WriteLine("hello world");
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|