mycontroller * Mc; //in header
handling a message in .m file:
if (! Mc) {
Mc = [[mycontroller alloc] initWithWindowNibName:"aWindow"]; //alert window
}
[Mc showWindow:self];
[[NSRunLoop currentRunLoop] runUntilDate:[NSDate dateWithTimeIntervalSinceNow:0.1]]; //make sure window is up