Elements. Build native projects for any modern development platform, using the language(s) of your choice. Oxygene (Object Pascal), C#, Swift, Java, Go. | RemObjects Software

Documents

Language: Hydrogene, Platform: Toffee, Category: OS X
https://github.com/remobjects/ElementsSamples/tree/master/Hydrogene/Toffee/OS X/Documents

FooDocumentWindowController.cs

using AppKit;

namespace Documents
{

	[IBObject]
	public class FooDocumentWindowController : NSWindowController
	{
		public this withDocument(FooDocument document) : base windowNibName("FooDocumentWindow")
		{
			_document = document;
		}

		public override void windowDidLoad() {

			base.windowDidLoad();

			// Implement this method to handle any initialization after your window controller's
			// window has been loaded from its nib file.
		}

		private FooDocument _document;
		public FooDocumentData? data { get { return _document.data; } }
	}
}