update mac files

This commit is contained in:
Luke 2014-11-21 12:20:28 -05:00
parent e29238130c
commit 21c6c57642
4 changed files with 12 additions and 8 deletions

View File

@ -2,7 +2,7 @@ using System;
using MonoMac.Foundation; using MonoMac.Foundation;
using MonoMac.AppKit; using MonoMac.AppKit;
namespace StatusMenu namespace MediaBrowser.Server.Mac
{ {
[Register("AppController")] [Register("AppController")]
public partial class AppController : NSObject public partial class AppController : NSObject
@ -14,10 +14,10 @@ namespace StatusMenu
public override void AwakeFromNib() public override void AwakeFromNib()
{ {
var statusItem = NSStatusBar.SystemStatusBar.CreateStatusItem(30); //var statusItem = NSStatusBar.SystemStatusBar.CreateStatusItem(30);
statusItem.Menu = statusMenu; //statusItem.Menu = statusMenu;
statusItem.Image = NSImage.ImageNamed("f3bfd_Untitled-thumb"); //statusItem.Image = NSImage.ImageNamed("f3bfd_Untitled-thumb");
statusItem.HighlightMode = true; //statusItem.HighlightMode = true;
} }
partial void HelloWorld(NSObject sender) partial void HelloWorld(NSObject sender)

View File

@ -6,7 +6,7 @@
// //
using MonoMac.Foundation; using MonoMac.Foundation;
namespace StatusMenu namespace MediaBrowser.Server.Mac
{ {
partial class AppController partial class AppController
{ {

View File

@ -16,8 +16,8 @@ namespace MediaBrowser.Server.Mac
public override void FinishedLaunching (NSObject notification) public override void FinishedLaunching (NSObject notification)
{ {
mainWindowController = new MainWindowController (); //mainWindowController = new MainWindowController ();
mainWindowController.Window.MakeKeyAndOrderFront (this); //mainWindowController.Window.MakeKeyAndOrderFront (this);
} }
} }
} }

View File

@ -81,6 +81,10 @@
<Compile Include="AppDelegate.designer.cs"> <Compile Include="AppDelegate.designer.cs">
<DependentUpon>AppDelegate.cs</DependentUpon> <DependentUpon>AppDelegate.cs</DependentUpon>
</Compile> </Compile>
<Compile Include="AppController.cs" />
<Compile Include="AppController.designer.cs">
<DependentUpon>AppController.cs</DependentUpon>
</Compile>
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<InterfaceDefinition Include="MainWindow.xib" /> <InterfaceDefinition Include="MainWindow.xib" />