I have an app with a button 'convert'. When I click this button, the app starts a new process using NSTask and then greys out the button until the process finishes.
My problem is, the app saves any clicks made by the user while it is waiting for the process to finish. So even though the button is grayed out, the user can click it and the process will immediately start again as soon as it finishes.
I'm waiting for the process to finish using:
[task waitUntilExit];
How do I ignore any user input while waiting for this task to finish?