title: NSTextField waits until the end of a loop to update
body: <p>Here's the problem:  I have some code that goes like this</p>
  
  <pre><code>otherWinController = [[NotificationWindowController alloc] init];
  for (int i = 0; i &lt; 10; i++) {
      [otherWinController showMessage:[NSString stringWithFormat:@"%d", i]];
      NSLog(@"%d", i);
      sleep(1);
  }
  </code></pre>
  
  <p>where otherWinController is a subclass of NSWindowController that I am using to update my window as changes happen in code, and the alloc init method simply opens up the nib and shows the window.  showMessage is a method that changes an NSTextView to display whatever text is in the parameter.  </p>
  
  <p>in the NSLog, the text changes every second and just counts to ten.  However for the showMessage method, the text is blank for a full ten seconds and then just displays the number 10.  any thoughts??</p>
  
  <p>FTR, the showMessage method is simply </p>
  
  <pre><code>- (void)showMessage:(NSString *)text {
  [[self message] setStringValue:text];
  }
  </code></pre>
  
  <p>not that it should matter, that's pretty basic.</p>