title: Refresh window in loop
body: <p>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 ?</p>
  
  <p>Thanks !</p>