Hi, We are spending a boat load of time constructing the menus and acting on the various messages sent to the menus during startup. By my testing NSMenu sizeToFit is called 71 times on loading GSTest.app alone (loading GWorkspace.app is even more intense, several hundred would be a good guess.) Attached is a patch that kills 67 of those calls. Visually things look faster and there are no display problems that I could see. Is there some way to scientifically test this?
Basically, I've added a BOOL that defaults to NO but is set to YES in NSMenu _showTornOffMenuIfAny:. Depending on the value of this BOOL NSMenu sizeToFit either bails at the beginning or goes on. Anyhow, I've attached a patch... This will not apply cleanly. I would make a clean patch, but as you know the CVS server is only spitting this out, "cvs [diff aborted]: recv() from server subversions.gnu.org: EOF". Would somebody please give this a spin a see if its worthwhile working on stuff like this... Cheers, Michael
NSMenu.opt.patch
Description: NSMenu.opt.patch
NSMenu.h.opt.patch
Description: NSMenu.h.opt.patch
_______________________________________________ Bug-gnustep mailing list [EMAIL PROTECTED] http://mail.gnu.org/mailman/listinfo/bug-gnustep
