aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Server.Mac/AppController.cs
diff options
context:
space:
mode:
Diffstat (limited to 'MediaBrowser.Server.Mac/AppController.cs')
-rw-r--r--MediaBrowser.Server.Mac/AppController.cs29
1 files changed, 29 insertions, 0 deletions
diff --git a/MediaBrowser.Server.Mac/AppController.cs b/MediaBrowser.Server.Mac/AppController.cs
new file mode 100644
index 000000000..7f364ed71
--- /dev/null
+++ b/MediaBrowser.Server.Mac/AppController.cs
@@ -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");
+ }
+ }
+}
+