From 4ef10753df86307ce01c40703c36e56585e1249c Mon Sep 17 00:00:00 2001 From: Luke Date: Fri, 21 Nov 2014 12:08:50 -0500 Subject: add server.mac project --- MediaBrowser.Server.Mac/MainWindowController.cs | 48 +++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 MediaBrowser.Server.Mac/MainWindowController.cs (limited to 'MediaBrowser.Server.Mac/MainWindowController.cs') diff --git a/MediaBrowser.Server.Mac/MainWindowController.cs b/MediaBrowser.Server.Mac/MainWindowController.cs new file mode 100644 index 0000000000..46a73b282a --- /dev/null +++ b/MediaBrowser.Server.Mac/MainWindowController.cs @@ -0,0 +1,48 @@ + +using System; +using System.Collections.Generic; +using System.Linq; +using MonoMac.Foundation; +using MonoMac.AppKit; + +namespace MediaBrowser.Server.Mac +{ + public partial class MainWindowController : MonoMac.AppKit.NSWindowController + { + #region Constructors + + // Called when created from unmanaged code + public MainWindowController (IntPtr handle) : base (handle) + { + Initialize (); + } + + // Called when created directly from a XIB file + [Export ("initWithCoder:")] + public MainWindowController (NSCoder coder) : base (coder) + { + Initialize (); + } + + // Call to load from the XIB/NIB file + public MainWindowController () : base ("MainWindow") + { + Initialize (); + } + + // Shared initialization code + void Initialize () + { + } + + #endregion + + //strongly typed window accessor + public new MainWindow Window { + get { + return (MainWindow)base.Window; + } + } + } +} + -- cgit v1.2.3