From bb3b2b3a503e0ca78eb0761801aa7941151a5cb3 Mon Sep 17 00:00:00 2001 From: Mark Sibly Date: Mon, 5 Oct 2015 12:15:32 +1300 Subject: [PATCH] Tidy up --- mod/maxgui.mod/cocoamaxgui.mod/cocoa.macos_tiger.m | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/mod/maxgui.mod/cocoamaxgui.mod/cocoa.macos_tiger.m b/mod/maxgui.mod/cocoamaxgui.mod/cocoa.macos_tiger.m index b3a1faf..f26714f 100644 --- a/mod/maxgui.mod/cocoamaxgui.mod/cocoa.macos_tiger.m +++ b/mod/maxgui.mod/cocoamaxgui.mod/cocoa.macos_tiger.m @@ -133,13 +133,12 @@ struct nsgadget{ // From S.O. for vertically text in cells... // -@interface VerticallyAlignedTextFieldCell : NSBrowserCell{ //NSTextFieldCell { - +@interface TreeViewCell : NSBrowserCell { } @end -@implementation VerticallyAlignedTextFieldCell +@implementation TreeViewCell - (NSRect)titleRectForBounds:(NSRect)theRect { NSRect titleFrame = [super titleRectForBounds:theRect]; @@ -1235,10 +1234,11 @@ tableColumn:(NSTableColumn *)aTableColumn row:(int)row mouseLocation:(NSPoint)mo // [cell setScrollable:YES]; // [column setDataCell:cell]; - cell=[[VerticallyAlignedTextFieldCell alloc] init]; + cell=[[TreeViewCell alloc] init]; + [cell setLeaf:YES]; + [cell setScrollable:YES]; [column setDataCell:cell]; - [self setDocumentView:outline]; [outline sizeLastColumnToFit]; -- 2.30.2