CommitView: Add context menu to revert changes

This commit is contained in:
Pieter de Bie
2008-10-09 21:03:49 +02:00
parent e659e63fc0
commit 472d36c7f9
7 changed files with 128 additions and 27 deletions
+24
View File
@@ -0,0 +1,24 @@
//
// PBFileChangesTableView.m
// GitX
//
// Created by Pieter de Bie on 09-10-08.
// Copyright 2008 Pieter de Bie. All rights reserved.
//
#import "PBFileChangesTableView.h"
#import "PBGitCommitController.h"
@implementation PBFileChangesTableView
@synthesize controller;
#pragma mark NSTableView overrides
- (NSMenu *)menuForEvent:(NSEvent *)theEvent
{
if (controller)
return [(PBGitCommitController *)controller menuForTable: self];
return nil;
}
@end