OK So now we have a control on a Window But how do we react to events that happen to that control ? Like KeyDown, Keyup, GotFocus, LostFocus, and TextChanged. Thats all the events there are on TextFields – for now.
In Xojo you’d just add the event handler to the control & put code in it.… Read the rest
So far when you run the project it will show a main window. But this is because we created the kind of project we did with a main storyboard and an entry in the Info.plist that told macOS what should be the main window.
Of course to follow along you’ll need to download and install VS for macOS
Once you have it you can easily start a new “solution” This is MS’ term for what might roughly be the equivalent of a Xojo project (although its a bit more than that) But for now “Xojo project” is close enough.
Select Mac app in the left hand pane send select “Cocoa app” and make sure the language elector is set to C# (you can use others supported by C# but I’m going to focus on C#)
Give your project a name – I used getting_started
Note that in this pane you can select which version of macOS you want to deploy backwards to.… Read the rest