Merge pull request #2006 from Dogild/outlineView-selectItem

Fixed: The delegate method shouldSelectItem doesn't work in CPOutlineView
This commit is contained in:
Antoine Mercadal committed 2013-10-21 14:24:35 -07:00
commit 949c618ff1
1 file changed
+19
+19
View File
@@ -1591,6 +1591,25 @@ var CPOutlineViewCoalesceSelectionNotificationStateOff = 0,
{
return _implementedOutlineViewDelegateMethods & CPOutlineViewDelegate_outlineView_shouldCollapseItem_;
}
/*!
@ignore
Return YES if the delegate implements outlineView:selectionIndexesForProposedSelection
*/
- (BOOL)_delegateRespondsToSelectionIndexesForProposedSelection
{
return _implementedOutlineViewDelegateMethods & CPOutlineViewDelegate_outlineView_selectionIndexesForProposedSelection_;
}
/*!
@ignore
Return YES if the delegate implements outlineView:shouldSelectItem:
*/
- (BOOL)_delegateRespondsToShouldSelectRow
{
return _implementedOutlineViewDelegateMethods & CPOutlineViewDelegate_outlineView_shouldSelectItem_;
}
@end
// FIX ME: We're using with() here because Safari fails if we use anOutlineView._itemInfosForItems or whatever...