<commit_before>using System;
using System.ComponentModel;
using System.Linq;
using SD = System.Drawing;
using Eto.Drawing;
using Eto.Forms;
using MonoMac.AppKit;
using MonoMac.Foundation;
using MonoMac.ObjCRuntime;
using Eto.Platform.Mac.Forms.Controls;
using Eto.Platform.Mac.Drawing;
using Eto.Platform.Mac.Forms.Printing;

namespace Eto.Platform.Mac.Forms
{
	public class MyWindow : NSWindow
	{
		SD.RectangleF oldFrame;
		bool zoom;

		WeakReference handler;
		public IMacWindow Handler { get { return (IMacWindow)handler.Target; } set { handler = new WeakReference(value); } }

		public MyWindow(SD.Rectangle rect, NSWindowStyle style, NSBackingStore store, bool flag)
			: base(rect, style, store, flag)
		{
		}

		public override void Center()
		{
			// implement centering to parent if there is a parent window for this one..<commit_msg>Mac: MyWindow should implement IMacControl to add methods for platform actions, etc.  Fixes #150<commit_after>using System;
using System.ComponentModel;
using System.Linq;
using SD = System.Drawing;
using Eto.Drawing;
using Eto.Forms;
using MonoMac.AppKit;
using MonoMac.Foundation;
using MonoMac.ObjCRuntime;
using Eto.Platform.Mac.Forms.Controls;
using Eto.Platform.Mac.Drawing;
using Eto.Platform.Mac.Forms.Printing;

namespace Eto.Platform.Mac.Forms
{
	public class MyWindow : NSWindow, IMacControl
	{
		SD.RectangleF oldFrame;
		bool zoom;

		public WeakReference WeakHandler { get; set; }
		public IMacWindow Handler { get { return (IMacWindow)WeakHandler.Target; } set { WeakHandler = new WeakReference(value); } }

		public MyWindow(SD.Rectangle rect, NSWindowStyle style, NSBackingStore store, bool flag)
			: base(rect, style, store, flag)
		{
		}

		public override void Center()
		{
			// implement centering to parent if there is a parent window for this one..
{'fraction_non_alphanumeric': 0.0924092409240924, 'fraction_numerical': 0.0016501650165016502, 'mean_word_length': 4.614197530864198, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3736389', 'n_tokens_mistral': 597, 'n_tokens_neox': 557, 'n_words': 170}