From: David Elliott Date: Fri, 5 Sep 2003 15:29:17 +0000 (+0000) Subject: Works a little better when you remember to say "virtual" X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/1981118d4bcd47bdbe4de66aba3e5db6368c7517 Works a little better when you remember to say "virtual" git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23406 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/include/wx/cocoa/NSMenu.h b/include/wx/cocoa/NSMenu.h index 5d8ac3bb9b..4d5df93f2a 100644 --- a/include/wx/cocoa/NSMenu.h +++ b/include/wx/cocoa/NSMenu.h @@ -34,11 +34,11 @@ public: , OBSERVE_DidSendAction = 0x08 , OBSERVE_WillSendAction = 0x10 }; - void CocoaNotification_menuDidAddItem(WX_NSNotification notification) {} - void CocoaNotification_menuDidChangeItem(WX_NSNotification notification) {} - void CocoaNotification_menuDidRemoveItem(WX_NSNotification notification) {} - void CocoaNotification_menuDidSendAction(WX_NSNotification notification) {} - void CocoaNotification_menuWillSendAction(WX_NSNotification notification) {} + 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) {} protected: static struct objc_object *sm_cocoaObserver; };