mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-11-16 02:18:54 -07:00
add mac files
This commit is contained in:
parent
4ef10753df
commit
e29238130c
29
MediaBrowser.Server.Mac/AppController.cs
Normal file
29
MediaBrowser.Server.Mac/AppController.cs
Normal file
@ -0,0 +1,29 @@
|
||||
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");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
27
MediaBrowser.Server.Mac/AppController.designer.cs
generated
Normal file
27
MediaBrowser.Server.Mac/AppController.designer.cs
generated
Normal file
@ -0,0 +1,27 @@
|
||||
// WARNING
|
||||
//
|
||||
// This file has been generated automatically by MonoDevelop to store outlets and
|
||||
// actions made in the Xcode designer. If it is removed, they will be lost.
|
||||
// Manual changes to this file may not be handled correctly.
|
||||
//
|
||||
using MonoMac.Foundation;
|
||||
|
||||
namespace StatusMenu
|
||||
{
|
||||
partial class AppController
|
||||
{
|
||||
[Outlet]
|
||||
MonoMac.AppKit.NSMenu statusMenu { get; set; }
|
||||
|
||||
[Action ("HelloWorld:")]
|
||||
partial void HelloWorld (MonoMac.Foundation.NSObject sender);
|
||||
|
||||
void ReleaseDesignerOutlets ()
|
||||
{
|
||||
if (statusMenu != null) {
|
||||
statusMenu.Dispose ();
|
||||
statusMenu = null;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user