Use NSProgress to bind your UI with the progress of asynchronous tasks.

Read more at the source