Hi, The current code in NSMenuView -setWindowFrameForAttachingToRect: forces a call to sizeToFit everytime a popupbutton's menuwindow is called for. This patch skips the sizeToFit call if nothing has changed, e.g. almost every time you activate the popupbutton. 2003年3月24日 Michael Hanni <michael@deviant-behavior.com> * Source/NSMenuView (setWindowFrameForAttachingToRect:): optimize our usage of sizeToFit.
Attachment:
NSMenuView-pop-opt.patch
Description: NSMenuView-pop-opt.patch