NSStatusItem Tooltip - Shift Delay

I have an NSStatusItem to which I have added a tooltip using the setToolTip: method.

Everything works, except that the delay before the tooltip is about 3 seconds, which is not suitable for my application.

Is there a way to change the delay before the tooltip is displayed? Ideally, I would like the delay to be 0 (i.e., a tooltip is immediately displayed when the user hovers over the icon).

+4
source share
1 answer

try it

 [[NSUserDefaults standardUserDefaults] setObject: [NSNumber numberWithInt: 1] forKey: @"NSInitialToolTipDelay"]; 
+6
source

Source: https://habr.com/ru/post/1386952/


All Articles