aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Server.Mac/AppController.cs
diff options
context:
space:
mode:
authorLuke Pulverenti <luke.pulverenti@gmail.com>2014-11-21 12:13:21 -0500
committerLuke Pulverenti <luke.pulverenti@gmail.com>2014-11-21 12:13:21 -0500
commite29238130ca2532fd1b371bca0e049f258a9af4b (patch)
tree80d32d3e1360a55d6410226124d0724b12001763 /MediaBrowser.Server.Mac/AppController.cs
parent4ef10753df86307ce01c40703c36e56585e1249c (diff)
add mac files
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 0000000000..7f364ed71f
--- /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");
+ }
+ }
+}
+