Skip to content

Commit b71e1ca

Browse files
committed
Explicit cast is needed if we abuse the delegate that way.
1 parent a56f82a commit b71e1ca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

PBSourceViewCell.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ - (NSMenu *) menuForEvent:(NSEvent *)event inRect:(NSRect)rect ofView:(NSOutline
3333
NSPoint point = [self.controlView convertPoint:[event locationInWindow] fromView:nil];
3434
NSInteger row = [view rowAtPoint:point];
3535

36-
PBGitSidebarController *controller = [view delegate];
36+
PBGitSidebarController *controller = (PBGitSidebarController*)[view delegate];
3737

3838
return [controller menuForRow:row];
3939
}

0 commit comments

Comments
 (0)