[NSView setNeedsDisplayInRect:] must be run in the main thread as of 10.13

This commit is contained in:
Kelvin Sherlock 2017-11-30 14:23:04 -05:00
parent bcadf05add
commit ea62737352

View File

@ -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];