Created
March 31, 2010 18:13
-
-
Save boucher/350661 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/AppKit/CPTableView.j b/AppKit/CPTableView.j | |
index 3943126..dcdb075 100644 | |
--- a/AppKit/CPTableView.j | |
+++ b/AppKit/CPTableView.j | |
@@ -278,9 +278,8 @@ CPTableViewFirstColumnOnlyAutoresizingStyle = 5; | |
_retargetedDropOperation = nil; | |
_dragOperationDefaultMask = nil; | |
_destinationDragStyle = CPTableViewDraggingDestinationFeedbackStyleRegular; | |
+ | |
_dropOperationFeedbackView = [[_CPDropOperationDrawingView alloc] initWithFrame:_CGRectMakeZero()]; | |
- [self addSubview:_dropOperationFeedbackView]; | |
- [_dropOperationFeedbackView setHidden:YES]; | |
[_dropOperationFeedbackView setTableView:self]; | |
_tableDrawView = [[_CPTableDrawView alloc] initWithTableView:self]; | |
@@ -2751,7 +2750,7 @@ CPTableViewFirstColumnOnlyAutoresizingStyle = 5; | |
*/ | |
- (void)draggingExited:(id)sender | |
{ | |
- [_dropOperationFeedbackView setHidden:YES]; | |
+ [self addSubview:_dropOperationFeedbackView]; | |
} | |
/* | |
@@ -2767,7 +2766,8 @@ CPTableViewFirstColumnOnlyAutoresizingStyle = 5; | |
_retargetedDropOperation = nil; | |
_retargetedDropRow = nil; | |
_draggedRowIndexes = [CPIndexSet indexSet]; | |
- [_dropOperationFeedbackView setHidden:YES]; | |
+ | |
+ [_dropOperationFeedbackView removeFromSuperview]; | |
} | |
/* | |
@ignore | |
@@ -2900,7 +2900,7 @@ CPTableViewFirstColumnOnlyAutoresizingStyle = 5; | |
{ | |
// FIX ME: is there anything else that needs to happen here? | |
// actual validation is called in dragginUpdated: | |
- [_dropOperationFeedbackView setHidden:YES]; | |
+ [_dropOperationFeedbackView removeFromSuperview]; | |
return (_implementedDataSourceMethods & CPTableViewDataSource_tableView_validateDrop_proposedRow_proposedDropOperation_); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment