0

I have to write a program that navigates between multiple NSTextFields (that I store in the array) with keyboard arrows and I need to recognize, which of many NSTextFields user is editing at the moment of test. Is there any way to do that in swift?

pomo_mondreganto
  • 2,028
  • 2
  • 28
  • 56

1 Answers1

1

You could use NSWindow firstResponder to know which NSTextField is selected at any moment.

juliensaad
  • 2,019
  • 2
  • 20
  • 27