Fix crash caused by race conditions.

This commit is contained in:
Steve Checkoway
2005-12-13 06:52:03 +00:00
parent deb83df80a
commit dc960d0b69
@@ -72,7 +72,8 @@ void SetCocoaWindowText(const char *s)
NSString *str = [NSString stringWithUTF8String:s];
[text setString:( str ? str : @"" )];
[text setNeedsDisplay:YES];
[text performSelectorOnMainThread:@selector(setNeedsDisplay:) withObject:[NSNumber numberWithBool:YES]
waitUntilDone:NO];
[pool release];
}