Fix crash caused by race conditions.
This commit is contained in:
@@ -72,7 +72,8 @@ void SetCocoaWindowText(const char *s)
|
|||||||
NSString *str = [NSString stringWithUTF8String:s];
|
NSString *str = [NSString stringWithUTF8String:s];
|
||||||
|
|
||||||
[text setString:( str ? str : @"" )];
|
[text setString:( str ? str : @"" )];
|
||||||
[text setNeedsDisplay:YES];
|
[text performSelectorOnMainThread:@selector(setNeedsDisplay:) withObject:[NSNumber numberWithBool:YES]
|
||||||
|
waitUntilDone:NO];
|
||||||
[pool release];
|
[pool release];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user