ViewController.cs 697 B

12345678910111213141516171819202122232425262728293031323334
  1. using System;
  2. using AppKit;
  3. using Foundation;
  4. namespace macOSForms
  5. {
  6. public partial class ViewController : NSViewController
  7. {
  8. public ViewController(IntPtr handle) : base(handle)
  9. {
  10. }
  11. public override void ViewDidLoad()
  12. {
  13. base.ViewDidLoad();
  14. // Do any additional setup after loading the view.
  15. }
  16. public override NSObject RepresentedObject
  17. {
  18. get
  19. {
  20. return base.RepresentedObject;
  21. }
  22. set
  23. {
  24. base.RepresentedObject = value;
  25. // Update the view, if already loaded.
  26. }
  27. }
  28. }
  29. }