mirror of
https://github.com/kennethreitz-archive/gitx.git
synced 2026-06-05 23:40:18 +00:00
replace depreciated selectRow:byExtendingSelection: method
This commit is contained in:
@@ -67,9 +67,9 @@
|
||||
}
|
||||
|
||||
[sourceView PBExpandItem:item expandParents:YES];
|
||||
NSInteger index = [sourceView rowForItem:item];
|
||||
NSIndexSet *index = [NSIndexSet indexSetWithIndex:[sourceView rowForItem:item]];
|
||||
|
||||
[sourceView selectRow:index byExtendingSelection:NO];
|
||||
[sourceView selectRowIndexes:index byExtendingSelection:NO];
|
||||
}
|
||||
|
||||
- (void)addRevSpec:(PBGitRevSpecifier *)rev
|
||||
|
||||
+4
-2
@@ -70,8 +70,10 @@
|
||||
int row = [self rowAtPoint:mousePoint];
|
||||
|
||||
// figure out if the row that was just clicked on is currently selected
|
||||
if ([selectedRowIndexes containsIndex:row] == NO)
|
||||
[self selectRow:row byExtendingSelection:NO];
|
||||
if ([selectedRowIndexes containsIndex:row] == NO) {
|
||||
NSIndexSet *index = [NSIndexSet indexSetWithIndex:row];
|
||||
[self selectRowIndexes:index byExtendingSelection:NO];
|
||||
}
|
||||
}
|
||||
|
||||
return [controller contextMenuForTreeView];
|
||||
|
||||
Reference in New Issue
Block a user