Finished Table cell text layout styles on Mac OS X.

This commit is contained in:
Pietro Gagliardi 2014-08-11 03:56:07 -04:00
parent 4bede4aa8d
commit 10201ef24f
1 changed files with 6 additions and 1 deletions

View File

@ -69,7 +69,12 @@ void tableAppendColumn(id t, intptr_t colnum, char *name)
setSmallControlFont((id) [c headerCell]); setSmallControlFont((id) [c headerCell]);
setStandardControlFont((id) [c dataCell]); setStandardControlFont((id) [c dataCell]);
// the following are according to Interface Builder // the following are according to Interface Builder
// TODO header cell // for the header cell, a stub program had to be written because Interface Builder doesn't support editing header cells directly
[[c headerCell] setScrollable:NO];
[[c headerCell] setWraps:NO];
[[c headerCell] setLineBreakMode:NSLineBreakByTruncatingTail];
[[c headerCell] setUsesSingleLineMode:NO];
[[c headerCell] setTruncatesLastVisibleLine:NO];
[[c dataCell] setScrollable:NO]; [[c dataCell] setScrollable:NO];
[[c dataCell] setWraps:NO]; [[c dataCell] setWraps:NO];
[[c dataCell] setLineBreakMode:NSLineBreakByTruncatingTail]; [[c dataCell] setLineBreakMode:NSLineBreakByTruncatingTail];