From 10201ef24f1f402bca6316c56c7d866ec03783f2 Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Mon, 11 Aug 2014 03:56:07 -0400 Subject: [PATCH] Finished Table cell text layout styles on Mac OS X. --- redo/table_darwin.m | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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];