Ejemplo n.º 1
0
		public override void DidFinishLaunching (NSNotification notification)
		{
			mainWindowController = new MainWindowController ();
			mainWindowController.Window.MakeKeyAndOrderFront (this);
			mainWindowController.Window.Title = "untitled";

			// Disable automatice item enabling on the Edit menu
			EditMenu.AutoEnablesItems = false;
			EditMenu.Delegate = new EditMenuDelegate ();
		}
Ejemplo n.º 2
0
		void NewDocument (NSObject sender) {
			var newWindowController = new MainWindowController ();
			newWindowController.Window.MakeKeyAndOrderFront (this);
			newWindowController.Window.Title = (++UntitledWindowCount == 1) ? "untitled" : string.Format ("untitled {0}", UntitledWindowCount);
		}