Fixed a bug where CPOutlineView would not call super's implementation of selectRowIndexes:byExtendingSelection:

This commit is contained in:
Klaas Pieter Annema
2010-01-29 18:01:46 +01:00
parent bfdbe2a34a
commit a18ea750a6
+4 -4
View File
@@ -353,7 +353,7 @@ var CPOutlineViewDataSource_outlineView_setObjectValue_forTableColumn_byItem_
item = [self itemAtRow:rowIndex];
if (![self isExpandable:item])
return;
continue;
var control = _disclosureControlsForRows[rowIndex];
[control setHighlighted:NO];
@@ -363,16 +363,16 @@ var CPOutlineViewDataSource_outlineView_setObjectValue_forTableColumn_byItem_
// Now highlight the new disclosure controls
var selectedRows = [];
[rows getIndexes:selectedRows maxCount:-1 inIndexRange:nil];
[rows getIndexes:selectedRows maxCount:-1 inIndexRange:nil];
var index = [selectedRows count];
var index = [selectedRows count];
while (index--)
{
var rowIndex = selectedRows[index],
item = [self itemAtRow:rowIndex];
if (![self isExpandable:item])
return;
continue;
var control = _disclosureControlsForRows[rowIndex];
[control setHighlighted:YES];