title: Force update of NSTextField
body: <p>I have a NSTextField that gets updated when my app searches through an array:</p>
  
  <pre><code>for (NSString *file in fileinDir)
  {
          processedFiles = processedFiles + 1;
  
          NSArray*filesinDevice = [fm contentsOfDirectoryAtPath:[[dict objectForKey:NSWorkspaceVolumeURLKey] path] error:nil];
  
          [progressLabel setStringValue:[NSString stringWithFormat:@"Copying %@ (%i out of %i)",file,processedFiles,[filesinDevice count]]];
  
          NSLog(@"%@",[NSString stringWithFormat:@"Copying %@ (%i out of %i)",file,processedFiles,[filesinDevice count]]);
  
  }
  </code></pre>
  
  <p>The NSLog statement updates fine and on time, but the NSTextField takes some time to update and sometimes misses out some file numbers ( like saying Copying Test.txt (3 out of 10) and then jumping to (9 out of 10))</p>
  
  <p>How can I force update the text field? There's no redraw method unfortunately... :/</p>