Which NSTextView is the first responder?

I am working on a Cocoa exercise and I need to determine which of the two NSTextView objects is currently being edited. I think this has to do with finding the first responder and checking if it matches a single text field, but I can't get it to work. Any help would be appreciated.

+3
source share
1 answer

I suggest you read the Cocoa Event Handling Guide , and especially the Responder Tasks section . You will find all the necessary information.

+2
source

Source: https://habr.com/ru/post/1729341/


All Articles