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 committed 2012-03-17 16:10:54 +01:00
1 parent b7dcd24e11
commit 27cda34f8b
2 files changed
+18 -1

No files matched your search

+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