Tidy up
authorMark Sibly <blitzmunter@gmail.com>
Sun, 4 Oct 2015 23:15:32 +0000 (12:15 +1300)
committerMark Sibly <blitzmunter@gmail.com>
Sun, 4 Oct 2015 23:15:32 +0000 (12:15 +1300)
mod/maxgui.mod/cocoamaxgui.mod/cocoa.macos_tiger.m

index b3a1fafd46568c9dc6d1c7beb095bd09ee0fc7fd..f26714fa731b9d26b8a8a8eb77f9985797880c6d 100644 (file)
@@ -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];