2014-11-21 18:13:21 +01:00
|
|
|
using System;
|
|
|
|
using MonoMac.Foundation;
|
|
|
|
using MonoMac.AppKit;
|
|
|
|
|
2014-11-21 18:20:28 +01:00
|
|
|
namespace MediaBrowser.Server.Mac
|
2014-11-21 18:13:21 +01:00
|
|
|
{
|
|
|
|
[Register("AppController")]
|
|
|
|
public partial class AppController : NSObject
|
|
|
|
{
|
|
|
|
public AppController()
|
|
|
|
{
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
public override void AwakeFromNib()
|
|
|
|
{
|
2014-11-22 17:38:48 +01:00
|
|
|
var statusItem = NSStatusBar.SystemStatusBar.CreateStatusItem(30);
|
|
|
|
statusItem.Menu = statusMenu;
|
|
|
|
statusItem.Image = NSImage.ImageNamed("touchicon");
|
|
|
|
statusItem.HighlightMode = true;
|
2014-11-21 18:13:21 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
partial void HelloWorld(NSObject sender)
|
|
|
|
{
|
|
|
|
Console.WriteLine("hello world");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|