mirror of
https://github.com/ksherlock/TwoTerm.git
synced 2026-04-19 11:18:35 +00:00
[NSView setNeedsDisplayInRect:] must be run in the main thread as of 10.13
This commit is contained in:
@@ -690,7 +690,6 @@ dispatch_async(dispatch_get_main_queue(), ^(){
|
||||
rect.origin.x += _paddingLeft;
|
||||
rect.origin.y += _paddingTop;
|
||||
|
||||
/*
|
||||
dispatch_async(dispatch_get_main_queue(), ^(){
|
||||
|
||||
[self setNeedsDisplayInRect: rect];
|
||||
@@ -698,9 +697,8 @@ dispatch_async(dispatch_get_main_queue(), ^(){
|
||||
//[self display];
|
||||
|
||||
});
|
||||
*/
|
||||
|
||||
[self setNeedsDisplayInRect: rect];
|
||||
//[self setNeedsDisplayInRect: rect];
|
||||
//[self display];
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user