Refs #1530. Fixed: table views could not be interacted with if they couldn't become the first responder.

This commit is contained in:
Alexander Ljungberg committed 2012-08-01 18:59:54 +01:00
1 parent 7537f4d032
commit 31ab70d6fc
3 files changed
+59 -22

No files matched your search

+2 -5
View File
@@ -4037,8 +4037,8 @@ Your delegate can implement this method to avoid subclassing the tableview to ad
*/
- (BOOL)startTrackingAt:(CGPoint)aPoint
{
if (![[self window] makeFirstResponder:self])
return NO;
// Try to become the first responder, but if we can't, that's okay.
[[self window] makeFirstResponder:self];
var row = [self rowAtPoint:aPoint];
@@ -4189,9 +4189,6 @@ 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,