Fixed backwards compatibility issues.

This commit is contained in:
Pietro Gagliardi 2016-06-29 08:53:49 -04:00
parent 6b0028d084
commit 621e301d5f
1 changed files with 2 additions and 1 deletions

View File

@ -523,7 +523,8 @@ uiTableColumn *uiTableAppendColumn(uiTable *t, const char *name)
c->c.libui_col = c;
// via Interface Builder
[c->c setResizingMask:(NSTableColumnAutoresizingMask | NSTableColumnUserResizingMask)];
[c->c setTitle:toNSString(name)];
// 10.10 adds -[NSTableColumn setTitle:]; before then we have to do this
[[c->c headerCell] setStringValue:toNSString(name)];
// TODO is this sufficient?
[[c->c headerCell] setFont:[NSFont systemFontOfSize:[NSFont systemFontSizeForControlSize:NSSmallControlSize]]];
c->parts = [NSMutableArray new];