Pop up window dialogs

Posted by Omega on Stack Overflow See other posts from Stack Overflow or by Omega
Published on 2011-11-22T16:35:38Z Indexed on 2011/11/22 17:50 UTC
Read the original article Hit count: 196

In Cocoa, my application's main window has a button. How can I make it so when you click it, a new window will be generated and set focus to such window so that the main window can not be clicked or interacted with at all? This new window will have a textfield and a submit button. You click it and the window is supposed to close and send the textfield's data back to the main window (and it will recover focus as well).

I found this: How to open a new window on button click in Cocoa Mac Application?

But the answer doesn't seem to be working for me. The function showWindow doesn't seem to be recognized...

© Stack Overflow or respective owner

Related posts about objective-c

Related posts about xcode