1
using MonoMac.Foundation;
6
public partial class AppDelegate : NSApplicationDelegate
8
MainWindowController mainWindowController;
9
PreferencesWindowController preferencesWindowController;
11
public override void FinishedLaunching (NSObject notification)
13
mainWindowController = new MainWindowController ();
14
mainWindowController.Window.MakeKeyAndOrderFront (this);
17
// Action method binded in MainMenu.xib to "Preferences..." menu item.
18
partial void ShowPreferencesWindow (NSObject sender)
20
if (preferencesWindowController == null)
21
preferencesWindowController = new PreferencesWindowController ();
22
preferencesWindowController.ShowWindow (this);