2 // PBFileChangesTableView.m
5 // Created by Pieter de Bie on 09-10-08.
6 // Copyright 2008 Pieter de Bie. All rights reserved.
9 #import "PBFileChangesTableView.h"
10 #import "PBGitIndexController.h"
12 @implementation PBFileChangesTableView
14 #pragma mark NSTableView overrides
15 - (NSMenu *)menuForEvent:(NSEvent *)theEvent
17 if ([self delegate]) {
18 NSPoint eventLocation = [self convertPoint: [theEvent locationInWindow] fromView: nil];
19 NSInteger rowIndex = [self rowAtPoint:eventLocation];
20 [self selectRowIndexes:[NSIndexSet indexSetWithIndex:rowIndex] byExtendingSelection:TRUE];
21 return [[self delegate] menuForTable: self];
27 - (NSDragOperation) draggingSourceOperationMaskForLocal:(BOOL) local
29 return NSDragOperationEvery;