mirror of
https://github.com/kennethreitz-archive/gitx.git
synced 2026-06-05 23:40:18 +00:00
Ugly coupling with mis-use of delegate is ugly.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user