CPTableView: When columns or rows dragging ends, enqueue the dragged views so they can be available when you drag again the column if they haven't been unloaded before.

The 2nd time you drag the same column/row, reduces -dragViewFor... duration by 90% according to webkit profiling.
This commit is contained in:
cacaodev
2012-03-17 16:10:54 +01:00
parent b7dcd24e11
commit 27cda34f8b
2 changed files with 18 additions and 1 deletions
+2
View File
@@ -486,6 +486,8 @@ var _CPTableColumnHeaderViewStringValueKey = @"_CPTableColumnHeaderViewStringVal
[self stopTrackingTableColumn:_activeColumn at:aLocation];
[self setNeedsDisplay:YES];
[_tableView _enqueueDraggingViews];
}
- (BOOL)shouldResizeTableColumn:(int)aColumnIndex at:(CGPoint)aPoint