From: Mark Sibly Date: Sun, 4 Oct 2015 23:15:32 +0000 (+1300) Subject: Tidy up X-Git-Url: https://jcornell.net/gitweb/gitweb.cgi?a=commitdiff_plain;h=bb3b2b3a503e0ca78eb0761801aa7941151a5cb3;p=blitzmax.git Tidy up --- 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];