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

_______________________________________________
Gnustep-dev mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/gnustep-dev

Reply via email to