Fixed backwards compatibility issues.
This commit is contained in:
parent
6b0028d084
commit
621e301d5f
|
@ -523,7 +523,8 @@ uiTableColumn *uiTableAppendColumn(uiTable *t, const char *name)
|
||||||
c->c.libui_col = c;
|
c->c.libui_col = c;
|
||||||
// via Interface Builder
|
// via Interface Builder
|
||||||
[c->c setResizingMask:(NSTableColumnAutoresizingMask | NSTableColumnUserResizingMask)];
|
[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?
|
// TODO is this sufficient?
|
||||||
[[c->c headerCell] setFont:[NSFont systemFontOfSize:[NSFont systemFontSizeForControlSize:NSSmallControlSize]]];
|
[[c->c headerCell] setFont:[NSFont systemFontOfSize:[NSFont systemFontSizeForControlSize:NSSmallControlSize]]];
|
||||||
c->parts = [NSMutableArray new];
|
c->parts = [NSMutableArray new];
|
||||||
|
|
Loading…
Reference in New Issue