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.
You are looking for NSWindow
's -isKeyWindow
method. "is key" means that it receives keyboard events.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With