gnustep-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Tooltips in save panels


From: Fred Kiefer
Subject: Re: Tooltips in save panels
Date: Mon, 18 Feb 2013 22:24:29 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130105 Thunderbird/17.0.2

On 18.02.2013 12:25, Riccardo Mottola wrote:
Hi,

On 02/18/13 06:22, Germán A. Arias wrote:
As I understand the save panels should display tooltips for buttons:
Home, Mount, Unmount. However I don't see these tooltips.
that is correct, I just implemented that feature because it was
requested in a bug report, but I did not announce or close the bug
because they don't work. Generally, however, tooltips to work for me.

My guess currently is that the NSSavePanel is modal and key window and
the "tooltip" window doesn't display above it, but I had no time yet to
formalize the bug for Fred. I may be also totally astride.

I think the root of this problem isn't even in gui. A timer gets set up for the tooltip via the NSTimer method
-scheduledTimerWithTimeInterval:target:selector:userInfo:repeats:
That method uses the runmode NSDefaultRunLoopMode for the timer. While a modal window gets displayed gui requests events in the NSModalPanelRunLoopMode and the timer wont get fired. Now this behaviour matches the Apple documentation, but results in the tooltip never getting displayed.

To work around this behaviour gui should create the timer via -timerWithTimeInterval:target:selector:userInfo:repeats: and add it to the runloop itself for different modes.

Fred



reply via email to

[Prev in Thread] Current Thread [Next in Thread]