How can I get a notification if NSView receives key focus?
I was expecting a method like "windowDidBecomeKey" from NSWindow, but either I'm blind or there is nothing like NSView.
The key view, when it is, is the first responder. So, implement the methodbecomeFirstResponder in your view and either process it there, or send a notification to your controller to listen.
becomeFirstResponder
Source: https://habr.com/ru/post/1757103/More articles:Проблема с выводом свойств пути к файлу в ant - javaКак передать строку, содержащую двойные кавычки из jsp, в сервлет через URL, используя метод get - jspHow to get started with graphic design web design? - designSearching for room selection options - javascriptIIS 7.5 - Website Must Restart Every Morning - iis-7.5Nhibernate (and ORM in general): working with objects or objects? - oopWhat is the best way to store files in a web application (asp.net + wcf) - asp.netCompiling node.js on Cygwin - node.jsHow to split a folder in asp.net web application with win form client? - asp.netHow to insert post meta values in wordpress - postAll Articles