mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-07-25 06:58:40 +02:00
30 lines
548 B
C#
30 lines
548 B
C#
using System;
|
|
using MonoMac.Foundation;
|
|
using MonoMac.AppKit;
|
|
|
|
namespace MediaBrowser.Server.Mac
|
|
{
|
|
[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("touchicon");
|
|
statusItem.HighlightMode = true;
|
|
}
|
|
|
|
partial void HelloWorld(NSObject sender)
|
|
{
|
|
Console.WriteLine("hello world");
|
|
}
|
|
}
|
|
}
|
|
|