Use setNeedsDisplay: since I think display: should only be called from the GUI thread.

This commit is contained in:
Steve Checkoway
2005-10-30 08:38:03 +00:00
parent 962652291d
commit 5ff545cbf2
@@ -64,8 +64,8 @@ void SetCocoaWindowText(const char *s)
NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
NSString *str = [NSString stringWithUTF8String:s];
[text setString:(str ? str : @"" )];
[text display];
[text setString:( str ? str : @"" )];
[text setNeedsDisplay:YES];
[pool release];
}