0

So I have a NSTextfield in Xcode and I am trying to grab the input text and save it as an integer in C# (working with Xamarin). I have spent the whole day looking for a solution, but failed.

Hour1 is the name of my textfield. I can't do like "Hour1.text". Can you help me?

int H1 = Convert.ToInt16(???);
Phonolog
  • 6,321
  • 3
  • 36
  • 64

1 Answers1

3

The NSTextfield should have a property called stringValue that contains the text as the normal .NET textbox control does.