From 8de71663c22c48987dc7ad7d1eed2c0efb1142ec Mon Sep 17 00:00:00 2001 From: Randall Luecke Date: Wed, 13 Jan 2010 21:30:10 -0500 Subject: [PATCH] Fixes for the CPTableView drag operation (selection and drag and drop) after the nasty fix for the outlineview fix for Safari. --- AppKit/CPTableView.j | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/AppKit/CPTableView.j b/AppKit/CPTableView.j index 110efabbb..93806cd8b 100644 --- a/AppKit/CPTableView.j +++ b/AppKit/CPTableView.j @@ -241,9 +241,12 @@ CPTableViewFirstColumnOnlyAutoresizingStyle = 5; _selectedColumnIndexes = [CPIndexSet indexSet]; _selectedRowIndexes = [CPIndexSet indexSet]; -window.setTimeout(function(){ - self._draggedRowIndexes = [CPIndexSet indexSet]; - self._verticalMotionCanDrag = YES;}, 0); + _draggedRowIndexes = [CPIndexSet indexSet]; + _verticalMotionCanDrag = YES; + _isSelectingSession = NO; + _retargetedDropRow = nil; + _retargetedDropOperation = nil; + _dragOperationDefaultMask = nil; _destinationDragStyle = CPTableViewDraggingDestinationFeedbackStyleRegular; _dropOperationFeedbackView = [[_dropOperationDrawingView alloc] initWithFrame:_CGRectMakeZero()]; [self addSubview:_dropOperationFeedbackView];