move functions used for setting the look of the file table into the file view's subclass

This commit is contained in:
Mitchell Livingston 2007-01-17 17:49:22 +00:00
parent 80698ed38d
commit 091e3c389f
2 changed files with 9 additions and 5 deletions

View File

@ -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];

View File

@ -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