git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29866
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
, OBSERVE_DidSendAction = 0x08
, OBSERVE_WillSendAction = 0x10
};
, OBSERVE_DidSendAction = 0x08
, OBSERVE_WillSendAction = 0x10
};
+ virtual void Cocoa_dealloc() {}
virtual void CocoaNotification_menuDidAddItem(WX_NSNotification notification) {}
virtual void CocoaNotification_menuDidChangeItem(WX_NSNotification notification) {}
virtual void CocoaNotification_menuDidRemoveItem(WX_NSNotification notification) {}
virtual void CocoaNotification_menuDidAddItem(WX_NSNotification notification) {}
virtual void CocoaNotification_menuDidChangeItem(WX_NSNotification notification) {}
virtual void CocoaNotification_menuDidRemoveItem(WX_NSNotification notification) {}
#endif // WX_PRECOMP
#include "wx/cocoa/NSMenu.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>
#import <Foundation/NSNotification.h>
#import <AppKit/NSMenu.h>
-#if 0 // There is no reason to pose for NSMenu at this time.
// ============================================================================
// @class wxPoserNSMenu
// ============================================================================
// ============================================================================
// @class wxPoserNSMenu
// ============================================================================
@end // wxPoserNSMenu
WX_IMPLEMENT_POSER(wxPoserNSMenu);
@implementation wxPoserNSMenu : NSMenu
@end // wxPoserNSMenu
WX_IMPLEMENT_POSER(wxPoserNSMenu);
@implementation wxPoserNSMenu : NSMenu
+- (void)dealloc
+{
+ wxCocoaNSMenu *menu = wxCocoaNSMenu::GetFromCocoa(self);
+ if(menu)
+ menu->Cocoa_dealloc();
+}
+
// ============================================================================
// @class wxNSMenuNotificationObserver
// ============================================================================
// @class wxNSMenuNotificationObserver