[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
NSMenu, NSPopupButton fidget.
From: |
Michael Hanni |
Subject: |
NSMenu, NSPopupButton fidget. |
Date: |
Mon, 28 Jan 2002 13:50:56 -0800 (PST) |
Hi,
So you know where I'm coming from: I'm using GNUstep on a 200MHz Apple
PowerBook (3400c for the curious). Anyhow, GNUstep is quite slow on this
particular platform (and I expected as much.) However, a side benefit of this
is I can see subtle problems in NSPopUp and NSMenu because I can actually watch
the visual cycles of these classes on screen.
Some observations:
1.) When you make a selection in NSPopUpButton the popup window actually
updates the selected item before ordering out. This makes for a strange visual
effect. In NSMenu if I add a dismissPopup before the selectItemAtIndex call (~
line 731) the window orders out before updating which fixes the problem.
However, the NSPopUpButtonCell does not update the title before the window
orders out, so we have a new visual discontinuity. D'oh. I'm looking into this
more, but it appears that how the new NSMenu/PopUp code are formulated the fix
will be ugly. Any ideas?
2.) NSMenu/View is pretty slow on this machine. I can not keep the mouse button
down and scroll up a menu without it skipping many items. Ordering front a
submenu seems to be very expensive for reasons I can't quite fathom (have not
really looked though.) I'd like to work on speeding this up, anyone working on
this? Any obvious hints to pass me?
General question: I have never been able to build and use profile builds. Any
hints? Also, is there a way to get the runtime to spew out all the message
passing? I mean, I want to actually watch the event and display loop in action
for NSMenuView. Is this feasible?
Thanks,
Michael
=====
__________________________________________________
Do You Yahoo!?
Great stuff seeking new owners in Yahoo! Auctions!
http://auctions.yahoo.com
- NSMenu, NSPopupButton fidget.,
Michael Hanni <=