From 091e3c389f43e24c431c14018c4b7ba2f59686b4 Mon Sep 17 00:00:00 2001 From: Mitchell Livingston Date: Wed, 17 Jan 2007 17:49:22 +0000 Subject: [PATCH] move functions used for setting the look of the file table into the file view's subclass --- macosx/FileOutlineView.m | 9 +++++++++ macosx/InfoWindowController.m | 5 ----- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/macosx/FileOutlineView.m b/macosx/FileOutlineView.m index 9df53098b..73b6b005b 100644 --- a/macosx/FileOutlineView.m +++ b/macosx/FileOutlineView.m @@ -26,6 +26,15 @@ @implementation FileOutlineView +- (void) awakeFromNib +{ + NSBrowserCell * browserCell = [[[NSBrowserCell alloc] init] autorelease]; + [browserCell setLeaf: YES]; + [[self tableColumnWithIdentifier: @"Name"] setDataCell: browserCell]; + + [self setAutoresizesOutlineColumn: NO]; +} + - (void) mouseDown: (NSEvent *) event { [[self window] makeKeyWindow]; diff --git a/macosx/InfoWindowController.m b/macosx/InfoWindowController.m index 17b7e21d4..2b37dede8 100644 --- a/macosx/InfoWindowController.m +++ b/macosx/InfoWindowController.m @@ -92,11 +92,6 @@ sortDescriptorPrototype]]]; //set file table - NSBrowserCell * browserCell = [[[NSBrowserCell alloc] init] autorelease]; - [browserCell setLeaf: YES]; - [[fFileOutline tableColumnWithIdentifier: @"Name"] setDataCell: browserCell]; - - [fFileOutline setAutoresizesOutlineColumn: NO]; [fFileOutline setDoubleAction: @selector(revealFile:)]; //set blank inspector