Added some debugging code to help figure out tables.

This commit is contained in:
Pietro Gagliardi 2016-06-22 13:28:12 -04:00
parent a82835fff3
commit 0ef01e1685
1 changed files with 11 additions and 0 deletions

View File

@ -322,5 +322,16 @@ uiTable *uiNewTable(uiTableModel *model)
p.VScroll = YES;
t->sv = mkScrollView(&p, &(t->d));
dispatch_after(
dispatch_time(DISPATCH_TIME_NOW,3*NSEC_PER_SEC),
dispatch_get_main_queue(),
^{
for(NSView *v in t->sv.subviews){
NSLog(@"%@ %p %@", [v class], v, NSStringFromRect([v frame]));
for(NSView *v2 in v.subviews)
NSLog(@" %@ %p %@", [v2 class], v2, NSStringFromRect([v2 frame]));
}
});
return t;
}