How can I find out if an NSWindow is active? i.e. if I have some windows on the desktop then only one is active and has colored window buttons and receives keyboard and mouse events. How can I find out if my window is the active one? To find out if the window is miniaturized there is the isMiniaturized method.
How can I find out if an NSWindow is active? i.e. if I have
Share
You are looking for
NSWindow‘s-isKeyWindowmethod. “is key” means that it receives keyboard events.