Skip to content

Commit a56f82a

Browse files
committed
Ugly coupling with mis-use of delegate is ugly.
1 parent 3ada98c commit a56f82a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

PBFileChangesTableView.m

+2-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ - (NSMenu *)menuForEvent:(NSEvent *)theEvent
1818
NSPoint eventLocation = [self convertPoint: [theEvent locationInWindow] fromView: nil];
1919
NSInteger rowIndex = [self rowAtPoint:eventLocation];
2020
[self selectRowIndexes:[NSIndexSet indexSetWithIndex:rowIndex] byExtendingSelection:TRUE];
21-
return [[self delegate] menuForTable: self];
21+
// TODO: Fix the coupling so we don't need the cast (at least).
22+
return [(PBGitIndexController*)[self delegate] menuForTable: self];
2223
}
2324

2425
return nil;

0 commit comments

Comments
 (0)