зеркало из https://github.com/xamarin/mac-samples.git
28 строки
541 B
C#
28 строки
541 B
C#
using System;
|
|
using MonoMac.Foundation;
|
|
using MonoMac.AppKit;
|
|
|
|
namespace GLSLShader
|
|
{
|
|
public partial class AppDelegate : NSApplicationDelegate
|
|
{
|
|
MainWindowController mainWindowController;
|
|
|
|
public AppDelegate ()
|
|
{
|
|
}
|
|
|
|
public override void FinishedLaunching (NSObject notification)
|
|
{
|
|
mainWindowController = new MainWindowController ();
|
|
mainWindowController.Window.MakeKeyAndOrderFront (this);
|
|
}
|
|
|
|
public override bool ApplicationShouldTerminateAfterLastWindowClosed (NSApplication sender)
|
|
{
|
|
return true;
|
|
}
|
|
}
|
|
}
|
|
|