Use setNeedsDisplay: since I think display: should only be called from the GUI thread.
This commit is contained in:
@@ -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];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user