Q: How do I display a new window I created programmatically?

A: If you allocate a window and initialize it with the init method, that window, by default, has display disabled.  When display is disabled, the window appears on-screen without a title and its contentView is white.  You must send it a display message to get things going (i.e., so that it draws itself properly). Simply sending it orderFront: is not sufficient. 

If your window is allocated and initialized with the initContent:style:backing:buttonMask:defer: method, display is disabled only if the defer flag is set to NO.  If it's YES, the window looks fine when it gets the orderFront: message.

QA345

Valid for 2.0
Valid for 3.0