Ugly coupling with mis-use of delegate is ugly.

This commit is contained in:
Romain Muller
2011-05-19 18:16:02 +02:00
parent 3ada98c765
commit a56f82ac2c
+2 -1
View File
@@ -18,7 +18,8 @@
NSPoint eventLocation = [self convertPoint: [theEvent locationInWindow] fromView: nil];
NSInteger rowIndex = [self rowAtPoint:eventLocation];
[self selectRowIndexes:[NSIndexSet indexSetWithIndex:rowIndex] byExtendingSelection:TRUE];
return [[self delegate] menuForTable: self];
// TODO: Fix the coupling so we don't need the cast (at least).
return [(PBGitIndexController*)[self delegate] menuForTable: self];
}
return nil;