pomo_mondreganto
pomo_mondreganto

Reputation: 2074

Recognize which of NSTextFields is editing now swift

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?

Upvotes: 0

Views: 342

Answers (1)

juliensaad
juliensaad

Reputation: 2059

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

Upvotes: 1

Related Questions