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];
|
NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
|
||||||
NSString *str = [NSString stringWithUTF8String:s];
|
NSString *str = [NSString stringWithUTF8String:s];
|
||||||
|
|
||||||
[text setString:(str ? str : @"" )];
|
[text setString:( str ? str : @"" )];
|
||||||
[text display];
|
[text setNeedsDisplay:YES];
|
||||||
[pool release];
|
[pool release];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user