Whats a key window in Objective-C Cocoa?

4.3k views Asked by At

What is a key window? And what is it used for? I read its used for "key input";but could someone expand on this? An example would be appreciated.

1

There are 1 answers

0
Lily Ballard On BEST ANSWER

The "key window" is the window that is currently accepting mouse and keyboard events. Usually the main window and the key window are the same, but that's not necessarily true (for example, if you have a utility window open, it can't be the main window, but it may become the key window).