using ObjCRuntime; using Ryuclaw.Speech.MacOS; namespace Ryuclaw.Client.Mac; public partial class ViewController : NSViewController { private TTS synth; protected ViewController (NativeHandle handle) : base (handle) { // This constructor is required if the view controller is loaded from a xib or a storyboard. // Do not put any initialization here, use ViewDidLoad instead. } public override void ViewDidLoad () { base.ViewDidLoad (); // Do any additional setup after loading the view. synth = new TTS(); synth.Speak("Rawr, world!"); } public override NSObject RepresentedObject { get => base.RepresentedObject; set { base.RepresentedObject = value; // Update the view, if already loaded. } } }