If you use the default Cocoa application template, your application delegate has a link to a window located in MainMenu.xib. You can just call
[window makeKeyAndOrderFront:self]
possibly in the IBActionmenu item invoked to reopen the window. Note: make sure that the “Release at close” and “Single snapshot” checkboxes are not checked in IB.
source
share