From 9c41aa9717cb095f81c6de7ddcf85b7c4fc24ce2 Mon Sep 17 00:00:00 2001 From: David Elliott Date: Thu, 26 Jul 2007 16:08:39 +0000 Subject: [PATCH] Silence the warning about lack of [NSApplication +setAppleMenu:] git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47733 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/cocoa/mbarman.mm | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/cocoa/mbarman.mm b/src/cocoa/mbarman.mm index 2eda41c0d4..81930b9135 100644 --- a/src/cocoa/mbarman.mm +++ b/src/cocoa/mbarman.mm @@ -27,6 +27,12 @@ #import #import +// Declare setAppleMenu: in an NSApplication category since Tiger and later +// releases support it but don't declare it as it's considered deprecated. +@interface NSApplication(wxDeprecatedMethodsWeWantToUse) +- (void)setAppleMenu:(NSMenu *)menu; +@end + // ============================================================================ // wxMenuBarManagerObserver // ============================================================================ -- 2.49.0