Started setting text layout options for Table on Mac OS X.

This commit is contained in:
Pietro Gagliardi 2014-08-10 23:54:56 -04:00
parent a172143fe6
commit 57cdc83280
1 changed files with 7 additions and 1 deletions

View File

@ -68,7 +68,13 @@ void tableAppendColumn(id t, intptr_t colnum, char *name)
[[c headerCell] setStringValue:[NSString stringWithUTF8String:name]]; [[c headerCell] setStringValue:[NSString stringWithUTF8String:name]];
setSmallControlFont((id) [c headerCell]); setSmallControlFont((id) [c headerCell]);
setStandardControlFont((id) [c dataCell]); setStandardControlFont((id) [c dataCell]);
// TODO text layout options // the following are according to Interface Builder
// TODO header cell
[[c dataCell] setScrollable:NO];
[[c dataCell] setWraps:NO];
[[c dataCell] setLineBreakMode:NSLineBreakByTruncatingTail];
[[c dataCell] setUsesSingleLineMode:NO];
[[c dataCell] setTruncatesLastVisibleLine:NO];
[toNSTableView(t) addTableColumn:c]; [toNSTableView(t) addTableColumn:c];
} }