Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

cocoa tooltip delay per object?

According to this article, you can change the tooltip display for your applications by modifying the NSInitialToolTipDelay user default.

So far, this seems to be the only way I have found to modify how long it takes to display a tooltip, however it seems to be application wide.

Does anyone know of a way that I can modify the tooltip speed for one specific NSTableView?

like image 430
Kyle Avatar asked Mar 19 '26 20:03

Kyle


1 Answers

After a minimum of investigation my best (untested) suggestion would be to use mouse tracking regions (mouseEntered: / mouseExited:) along with [[objc_lookUpClass("NSToolTipManager") sharedToolTipManager] setInitialToolTipDelay:0.1]; (as suggested here: http://lists.apple.com/archives/cocoa-dev/2003/Jan/msg01219.html) to (re)set the delay when the mouse enters/exits the NSTableView's rectangle.

like image 192
geowar Avatar answered Mar 21 '26 10:03

geowar



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!