[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] optimize sizeToFit calls in NSMenuView for NSPopUps
From: |
Michael Hanni |
Subject: |
[PATCH] optimize sizeToFit calls in NSMenuView for NSPopUps |
Date: |
Tue, 25 Mar 2003 01:27:46 -0800 (PST) |
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.
NSMenuView-pop-opt.patch
Description: NSMenuView-pop-opt.patch
- [PATCH] optimize sizeToFit calls in NSMenuView for NSPopUps,
Michael Hanni <=