bug-gnustep
[Top][All Lists]
Advanced

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

Re: NSMenuView and mouse tracking. Test needed


From: Willem Rein Oudshoorn
Subject: Re: NSMenuView and mouse tracking. Test needed
Date: 17 Apr 2003 18:30:01 +0200
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2

Serg Stoyan <stoyan@hologr.com> writes:

> There is another approach in improving speed and response - stop using
> periodic events. I've tried to change NSMenuView's trackWithEvent: to act
> that way, but menu appearing (sliding if it's partly off screen) stop
> working properly.

I think this would be the best approach.  However some things do need timing:

- Scrolling/sliding the menu (as you noticed)
- Opening and closing submenus, this is rather subtle and I am not going to
  explain now.

But both can be achieved without using periodic events.

However I got the impression that the loop without periodic events
in the NSMenuTitleView did not work properly for certain people.
This should be investigated first before we try a similar change
in the much more dificult "trackEvent" code in NSMenuView.

It worked perfectly for me, and it worked as well for David Ayers
(I think).  I tried to add some sleeps in the code to try to mimic
a slow system but it kept on working fine.

But I have to say that I am perfectly happy with the current 
slide and scrollspeed.  And it should not be too fast.

Wim Oudshoorn.





reply via email to

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