How to show/open/bringToFront a Window that is inside the MainMenu.xib File?

Posted by 0SX on Stack Overflow See other posts from Stack Overflow or by 0SX
Published on 2013-06-28T21:48:18Z Indexed on 2013/06/28 22:21 UTC
Read the original article Hit count: 371

This is a stupid question that I should be able to answer myself but I can't seem to get it to work. I have a window inside my MainMenu.xib file that I want to show or bring to front. Right now I have it visible at launch and it works but if I close it with orderOut: and do another instance of it, buttons quit working. How can I reopen the same window that the NSApplication launched at the beginning of the app? I've spent 2+ days trying to figure a way to make it work but no luck. I've even tried to split the window out to it's own xib file but when I do that my methods from the appDelegate fail to respond/work. Any help would be much appreciated. I feel stupid for even asking such a simplistic question. lol Thanks.

© Stack Overflow or respective owner

Related posts about objective-c

Related posts about osx