Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 32 lines (26 sloc) 0.775 kb
472d36c7 »
2008-10-09 CommitView: Add context menu to revert changes
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"
d40af770 »
2009-04-28 ChangesTableView: Remove warning by casting to correct class
10 #import "PBGitIndexController.h"
472d36c7 »
2008-10-09 CommitView: Add context menu to revert changes
11
12 @implementation PBFileChangesTableView
13
14 #pragma mark NSTableView overrides
15 - (NSMenu *)menuForEvent:(NSEvent *)theEvent
16 {
3b6c2a30 » charlesorourke
2009-05-27 Ticket #142: Add Show in Finder to Unstaged and Staged table views.
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];
c12e8b9d » d0k
2009-05-20 Get rid of some unnecessary casts
21 return [[self delegate] menuForTable: self];
3b6c2a30 » charlesorourke
2009-05-27 Ticket #142: Add Show in Finder to Unstaged and Staged table views.
22 }
472d36c7 »
2008-10-09 CommitView: Add context menu to revert changes
23
24 return nil;
25 }
e76d4831 »
2008-11-19 CommitView: Allow drag and drop to external applications
26
27 - (NSDragOperation) draggingSourceOperationMaskForLocal:(BOOL) local
28 {
29 return NSDragOperationEvery;
30 }
31
472d36c7 »
2008-10-09 CommitView: Add context menu to revert changes
32 @end
Something went wrong with that request. Please try again.