From 35da598fafabbb65bd10fffe3acfd1b886b91c1f Mon Sep 17 00:00:00 2001 From: David Elliott Date: Thu, 26 Jul 2007 18:19:59 +0000 Subject: [PATCH] Merged trunk 47733: Silence the warning about lack of [NSApplication +setAppleMenu:] git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@47737 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 // ============================================================================