From 24b495ca43c482fd52ee235e959afc252f4702d0 Mon Sep 17 00:00:00 2001 From: Francisco Ryan Tolmasky I Date: Tue, 12 Jan 2010 22:52:34 -0800 Subject: [PATCH] Temporary fix for CPTableView being broken. Reviewed by me. --- AppKit/CPTableView.j | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/AppKit/CPTableView.j b/AppKit/CPTableView.j index 3408769ad..7f02b307b 100644 --- a/AppKit/CPTableView.j +++ b/AppKit/CPTableView.j @@ -182,10 +182,10 @@ CPTableViewFirstColumnOnlyAutoresizingStyle = 5; SEL _doubleAction; unsigned _columnAutoResizingStyle; - BOOL _verticalMotionCanDrag; +// BOOL _verticalMotionCanDrag; unsigned _destinationDragStyle; BOOL _isSelectingSession; - CPIndexSet _draggedRowIndexes; +// CPIndexSet _draggedRowIndexes; _dropOperationDrawingView _dropOperationFeedbackView; CPDragOperation _dragOperationDefaultMask; int _retargetedDropRow; @@ -241,9 +241,9 @@ CPTableViewFirstColumnOnlyAutoresizingStyle = 5; _selectedColumnIndexes = [CPIndexSet indexSet]; _selectedRowIndexes = [CPIndexSet indexSet]; - - _draggedRowIndexes = [CPIndexSet indexSet]; - _verticalMotionCanDrag = YES; +window.setTimeout(function(){ + self._draggedRowIndexes = [CPIndexSet indexSet]; + self._verticalMotionCanDrag = YES;}, 0); _destinationDragStyle = CPTableViewDraggingDestinationFeedbackStyleRegular; _dropOperationFeedbackView = [[_dropOperationDrawingView alloc] initWithFrame:_CGRectMakeZero()]; [self addSubview:_dropOperationFeedbackView];