Play-/Source/ui_macosx/VfsManagerViewController.mm
2016-01-14 10:30:56 -05:00

33 lines
565 B
Plaintext

#import "VfsManagerViewController.h"
@implementation VfsManagerViewController
-(id)init
{
if(self = [super initWithNibName: @"VfsManagerView" bundle: nil])
{
}
return self;
}
-(void)awakeFromNib
{
[bindingsTableView setDoubleAction: @selector(onTableViewDblClick:)];
}
-(void)viewWillDisappear
{
[bindings save];
}
-(void)onTableViewDblClick: (id)sender
{
int selectedIndex = [bindingsTableView clickedRow];
if(selectedIndex == -1) return;
VfsManagerBinding* binding = [bindings getBindingAt: selectedIndex];
[binding requestModification];
}
@end