Make sure popup button cells wont get notifications after being dealloceated.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@21266 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Fred Kiefer 2005-05-27 13:41:46 +00:00
parent eb7eaa1654
commit 41c3e4644b
2 changed files with 12 additions and 0 deletions

View file

@ -1,3 +1,9 @@
2005-05-27 Fred Kiefer <FredKiefer@gmx.de>
* Source/NSPopupButton.m (-dealloc) Dismiss the popup. This is to
make sure the removed popup no longer gets notifications. may
happen when the cell gets deallocated without closing the popup.
2005-05-26 Fred Kiefer <FredKiefer@gmx.de>
* Source/NSTableView.m (-mouseDown): Replaced use of

View file

@ -85,6 +85,12 @@ static NSImage *_pbc_image[2];
- (void) dealloc
{
/*
* The popup must be closed here, just in case the cell goes away
* while the popup is still displayed. In that case the notification
* center would still send notifications to the deallocated cell.
*/
[self dismissPopUp];
/*
* We don't use methods here to clean up the selected item, the menu
* item and the menu as these methods internally update the menu,