mirror of
https://github.com/MacPass/MacPass.git
synced 2025-12-14 21:13:35 +00:00
Newly created Group now gets selected in Outline
This commit is contained in:
@@ -164,13 +164,7 @@ NSString *const _MPOutlinveViewHeaderViewIdentifier = @"HeaderCell";
|
|||||||
NSIndexPath *groupIndexPath = [group indexPath];
|
NSIndexPath *groupIndexPath = [group indexPath];
|
||||||
NSTreeNode *groupNode = [[self.treeController arrangedObjects] descendantNodeAtIndexPath:groupIndexPath];
|
NSTreeNode *groupNode = [[self.treeController arrangedObjects] descendantNodeAtIndexPath:groupIndexPath];
|
||||||
[self.outlineView expandItem:groupNode.parentNode];
|
[self.outlineView expandItem:groupNode.parentNode];
|
||||||
/* TODO: Select created Group
|
[self.outlineView selectRowIndexes:[NSIndexSet indexSetWithIndex:[self.outlineView rowForItem:groupNode]] byExtendingSelection:NO];
|
||||||
NSUInteger row = 0;
|
|
||||||
for(NSUInteger index = 0; index < [groupIndexPath length]; index++ ) {
|
|
||||||
row += [groupIndexPath indexAtPosition:index];
|
|
||||||
}
|
|
||||||
[self.outlineView selectRowIndexes:[NSIndexSet indexSetWithIndex:row] byExtendingSelection:NO];
|
|
||||||
*/
|
|
||||||
}
|
}
|
||||||
|
|
||||||
- (id)itemUnderMouse {
|
- (id)itemUnderMouse {
|
||||||
|
|||||||
Reference in New Issue
Block a user