Merge branch 'issue1435' of https://github.com/stewa/cappuccino into issue1435

This commit is contained in:
Antoine Mercadal
2012-06-14 11:58:49 -07:00
+6 -1
View File
@@ -4009,6 +4009,9 @@ Your delegate can implement this method to avoid subclassing the tableview to ad
*/
- (BOOL)startTrackingAt:(CGPoint)aPoint
{
if (![[self window] makeFirstResponder:self])
return NO;
var row = [self rowAtPoint:aPoint];
// If the user clicks outside a row then deselect everything.
@@ -4036,7 +4039,6 @@ Your delegate can implement this method to avoid subclassing the tableview to ad
if (row >= 0 && !(_implementedDataSourceMethods & CPTableViewDataSource_tableView_writeRowsWithIndexes_toPasteboard_))
[self _updateSelectionWithMouseAtRow:row];
[[self window] makeFirstResponder:self];
return YES;
}
@@ -4159,6 +4161,9 @@ Your delegate can implement this method to avoid subclassing the tableview to ad
*/
- (void)stopTracking:(CGPoint)lastPoint at:(CGPoint)aPoint mouseIsUp:(BOOL)mouseIsUp
{
if ([[self window] firstResponder] !== self)
return;
_isSelectingSession = NO;
var CLICK_TIME_DELTA = 1000,