summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2014-08-11 03:56:07 -0400
committerPietro Gagliardi <[email protected]>2014-08-11 03:56:07 -0400
commit10201ef24f1f402bca6316c56c7d866ec03783f2 (patch)
tree05a5e3c267c599981b146671d1032194f86cd7d0
parent4bede4aa8d673e04ee1157ddb62721fa4e6813d9 (diff)
Finished Table cell text layout styles on Mac OS X.
-rw-r--r--redo/table_darwin.m7
1 files changed, 6 insertions, 1 deletions
diff --git a/redo/table_darwin.m b/redo/table_darwin.m
index 516b9c7..70d9260 100644
--- a/redo/table_darwin.m
+++ b/redo/table_darwin.m
@@ -69,7 +69,12 @@ void tableAppendColumn(id t, intptr_t colnum, char *name)
setSmallControlFont((id) [c headerCell]);
setStandardControlFont((id) [c dataCell]);
// 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] setWraps:NO];
[[c dataCell] setLineBreakMode:NSLineBreakByTruncatingTail];