Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 33 lines (26 sloc) 0.775 kb
472d36c @pieter CommitView: Add context menu to revert changes
authored
1 //
2 // PBFileChangesTableView.m
3 // GitX
4 //
5 // Created by Pieter de Bie on 09-10-08.
6 // Copyright 2008 Pieter de Bie. All rights reserved.
7 //
8
9 #import "PBFileChangesTableView.h"
d40af77 @pieter ChangesTableView: Remove warning by casting to correct class
authored
10 #import "PBGitIndexController.h"
472d36c @pieter CommitView: Add context menu to revert changes
authored
11
12 @implementation PBFileChangesTableView
13
14 #pragma mark NSTableView overrides
15 - (NSMenu *)menuForEvent:(NSEvent *)theEvent
16 {
3b6c2a3 @charlesorourke Ticket #142: Add Show in Finder to Unstaged and Staged table views.
charlesorourke authored
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];
c12e8b9 @d0k Get rid of some unnecessary casts
d0k authored
21 return [[self delegate] menuForTable: self];
3b6c2a3 @charlesorourke Ticket #142: Add Show in Finder to Unstaged and Staged table views.
charlesorourke authored
22 }
472d36c @pieter CommitView: Add context menu to revert changes
authored
23
24 return nil;
25 }
e76d483 @pieter CommitView: Allow drag and drop to external applications
authored
26
27 - (NSDragOperation) draggingSourceOperationMaskForLocal:(BOOL) local
28 {
29 return NSDragOperationEvery;
30 }
31
472d36c @pieter CommitView: Add context menu to revert changes
authored
32 @end
Something went wrong with that request. Please try again.