jellyfin/MediaBrowser.Server.Mac/AppController.cs

30 lines
546 B
C#
Raw Normal View History

2014-11-21 17:13:21 +00:00
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");
}
}
}