bug-gnustep
[Top][All Lists]
Advanced

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

NSPopUpButton issue (possible patch)


From: Michael Hanni
Subject: NSPopUpButton issue (possible patch)
Date: Mon, 11 Feb 2002 10:38:49 -0800 (PST)

Howdy,

NSPopUpButton and co. does some weird things while drawing.  The most obvious
in my mind is the strange changes in NSOffState and NSOnState.  On a slow
machine, like mine, when you change the selection in an NSPopUpButton you
actually see the menuview scramble to redraw the view to show the change in
state (i.e. a checkmark) before it finishs and orders out.  This behaviour
would work visually if we had MacOSX style menuViews but since we don't I think
we can safetly remove this with a comment.

Also, the trackWithEvent method in NSMenuView goes through alot of work even if
we are a popupbutton.  Thus, knowing that we don't need the extra handling we
can bail out of the loop and speed things up a bit -- I think.

Anyhow, here is a tiny patch for discussion (not really submission).

Cheers,

Michael

p.s. another beautiful day here in Salt Lake :-)

=====


__________________________________________________
Do You Yahoo!?
Send FREE Valentine eCards with Yahoo! Greetings!
http://greetings.yahoo.com



reply via email to

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