mirror of
https://github.com/transmission/transmission
synced 2025-02-03 04:53:27 +00:00
move functions used for setting the look of the file table into the file view's subclass
This commit is contained in:
parent
80698ed38d
commit
091e3c389f
2 changed files with 9 additions and 5 deletions
|
@ -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];
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue