Re: Setting tooltip delay?
Re: Setting tooltip delay?
- Subject: Re: Setting tooltip delay?
- From: Pierre-Olivier Latour <email@hidden>
- Date: Sun, 19 Jan 2003 21:11:34 -0800
>
On Sun, Jan 19, 2003 at 07:20:21PM -0800, Pierre-Olivier Latour wrote:
>
> Hi,
>
>
>
> Is there any way to set the delay before tooltips appear to 0?
>
>
[[NSToolTipManager sharedToolTipManager] setInitialToolTipDelay: 0];
>
>
Normal warnings about undocumented stuff apply, but it seems to work,
>
and what a difference it makes in the usability of tooltips!
OK, I've done some tests:
1) the compiler doesn't like "NSToolTipManager" as obviously it thinks it's
a variable and not a class, so I had to change it to:
[[objc_lookUpClass("NSToolTipManager") sharedToolTipManager]
setInitialToolTipDelay:0.1];
2) setting the delay to 0 apparently disable the tooltips, so the trick is
to set the delay to a very small value
3) I did not find a method like + initialToolTipDelay to retrieve the
current setting (it seems to be a little more than 1 second)
Other than that, it seems to work :)
_____________________________________________________________
Pierre-Olivier Latour email@hidden
Palo Alto, USA
http://www.pol-online.net
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.