I have an application written in xcode/cocoa on Mac.
A label on the main window is changed in every occurrence of a heavy loop with [label setStringValue], however it is refreshed only at the end of the loop.
How can I have it refreshed in each occurrence ?
Thanks !
You should use a queue. Your heavy loop in backgroundQueue and [label setStringValue] in mainQueue.
Example: