I'm having some issues with showing a progress indicator whenever a button is clicked, and then stop and hide the indicator when a NSTask is completed.
This should be the timeline: 1- Button clicked 2- shows progress indicator (from originally hidden state) 3- activates progress indicator 4- activate associated NSTask 5- Continue showing the indicator until the NSTask is completed 6- after the completion of the NSTask, hide the progress indicator.
I know how to get a progress indicator to animate etc. I just do not know how to combine these with the NSTask completing thing..
Thanks for the help in advance!