Refs #1264. Make tooltip delay a constant and reduce it to 1.0 second to match Cocoa a little more closely.

Perhaps we should implement something like [[CPToolTipManager sharedToolTipManager] setInitialToolTipDelay:X] for completeness.
This commit is contained in:
Alexander Ljungberg committed 2011-05-15 19:01:26 -04:00
1 parent e9cfc806b6
commit 23cc507b12
1 file changed
+3 -4
+3 -4
View File
@@ -29,9 +29,8 @@ _CPToolTipWindowMask = 1 << 27;
var _CPToolTipHeight = 24.0,
_CPToolTipFontSize = 11.0,
_CPCurrentToolTip,
_CPCurrentToolTipTimer;
_CPCurrentToolTipTimer,
_CPToolTipDelay = 1.0;
/*! @ingroup appkit
This is a basic tooltip that behaves mostly like Cocoa ones.
@@ -263,7 +262,7 @@ var _CPToolTipHeight = 24.0,
}
if (_toolTip)
_CPCurrentToolTipTimer = [CPTimer scheduledTimerWithTimeInterval:2.0 target:self selector:@selector(_showToolTip:) userInfo:nil repeats:NO];
_CPCurrentToolTipTimer = [CPTimer scheduledTimerWithTimeInterval:_CPToolTipDelay target:self selector:@selector(_showToolTip:) userInfo:nil repeats:NO];
}
/*! @ignore