X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/1981118d4bcd47bdbe4de66aba3e5db6368c7517..f3ff831f3be88834579fc9a0ce17f24745650faf:/include/wx/cocoa/NSMenu.h diff --git a/include/wx/cocoa/NSMenu.h b/include/wx/cocoa/NSMenu.h index 4d5df93f2a..6438f1e02d 100644 --- a/include/wx/cocoa/NSMenu.h +++ b/include/wx/cocoa/NSMenu.h @@ -34,11 +34,14 @@ public: , OBSERVE_DidSendAction = 0x08 , OBSERVE_WillSendAction = 0x10 }; - virtual void CocoaNotification_menuDidAddItem(WX_NSNotification notification) {} - virtual void CocoaNotification_menuDidChangeItem(WX_NSNotification notification) {} - virtual void CocoaNotification_menuDidRemoveItem(WX_NSNotification notification) {} - virtual void CocoaNotification_menuDidSendAction(WX_NSNotification notification) {} - virtual void CocoaNotification_menuWillSendAction(WX_NSNotification notification) {} + virtual void Cocoa_dealloc() {} + virtual void CocoaNotification_menuDidAddItem(WX_NSNotification WXUNUSED(notification)) {} + virtual void CocoaNotification_menuDidChangeItem(WX_NSNotification WXUNUSED(notification)) {} + virtual void CocoaNotification_menuDidRemoveItem(WX_NSNotification WXUNUSED(notification)) {} + virtual void CocoaNotification_menuDidSendAction(WX_NSNotification WXUNUSED(notification)) {} + virtual void CocoaNotification_menuWillSendAction(WX_NSNotification WXUNUSED(notification)) {} + virtual ~wxCocoaNSMenu() { } + protected: static struct objc_object *sm_cocoaObserver; };