views:

1315

answers:

4

In every application,

there is always written as [window makeKeyAndVisible];

What is mean by makeKey?

+2  A: 

This means that this is the window that accepts keyboard input. This matches similar nomenclature on Mac OS X.

Alex
+4  A: 

The key window is the window which will receive user interaction.

You might take a look at this:

http://developer.apple.com/mac/library/documentation/Cocoa/Conceptual/WinPanel/Concepts/ChangingMainKeyWindow.html

Rob
+2  A: 

This method call performs a critical function. If you omit it then the top level view to the window will not be autoresized however you have set the springs and struts. Took me a while to figure that out: if the in-call status bar resizing is not happening, check to see that the window is marked as key.

Steve Weller
A: 

Thank you! Helped me a lot!

Sportaal