From 3fa15d5277c4299e1b2aefe5100c74463c2d6ba5 Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Mon, 4 Jun 2018 20:17:15 -0400 Subject: [PATCH] Fixed graphical glitches in the OS X Table. Finally. SOMEHOW. --- darwin/table.m | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/darwin/table.m b/darwin/table.m index 5a7e7500..5d5d8d5e 100644 --- a/darwin/table.m +++ b/darwin/table.m @@ -161,6 +161,11 @@ uiTable *uiNewTable(uiTableModel *model) p.VScroll = YES; t->sv = uiprivMkScrollView(&p, &(t->d)); + // TODO WHY DOES THIS REMOVE ALL GRAPHICAL GLITCHES? + // I got the idea from http://jwilling.com/blog/optimized-nstableview-scrolling/ but that was on an unrelated problem I didn't seem to have (although I have small-ish tables to start with) + // I don't get layer-backing... am I supposed to layer-back EVERYTHING manually? I need to check Interface Builder again... + [t->sv setWantsLayer:YES]; + t->backgroundColumn = -1; return t;