Pop up window dialogs
- by Omega
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...