// Created: 2002/12/09
// RCS-ID: $Id$
// Copyright: (c) 2002 David Elliott
-// Licence: wxWindows licence
+// Licence: wxWidgets licence
/////////////////////////////////////////////////////////////////////////////
#include "wx/wxprec.h"
#endif // WX_PRECOMP
#include "wx/cocoa/NSMenu.h"
-//#include "wx/cocoa/ObjcPose.h"
+#include "wx/cocoa/ObjcPose.h"
#import <Foundation/NSNotification.h>
#import <AppKit/NSMenu.h>
-#if 0 // There is no reason to pose for NSMenu at this time.
// ============================================================================
// @class wxPoserNSMenu
// ============================================================================
{
}
+- (void)dealloc;
+
@end // wxPoserNSMenu
WX_IMPLEMENT_POSER(wxPoserNSMenu);
@implementation wxPoserNSMenu : NSMenu
+- (void)dealloc
+{
+ wxCocoaNSMenu *menu = wxCocoaNSMenu::GetFromCocoa(self);
+ if(menu)
+ menu->Cocoa_dealloc();
+ [super dealloc];
+}
+
@end // wxPoserNSMenu
-#endif // 0
// ============================================================================
// @class wxNSMenuNotificationObserver