I am developing a GUI in Cocoa with a button and one NSTextField. When the button is clicked another window pop up with one NSTextField and two buttons: Ok button and Cancel Button. The user can entry some text in the NSTextField of the second window and when this window is closed the same text goes to the NSTextField of ther first window.
My question is: how can I make my application wait for the user to close the second window to update the NSTextField of the first widow? And if the user clicks the Cancel Button in the second window I don't wanna change anything in the first window.
Is it only possible with modal window?
Thanks in advance,
Rhenan