From: David Elliott Date: Thu, 26 Jul 2007 16:08:39 +0000 (+0000) Subject: Silence the warning about lack of [NSApplication +setAppleMenu:] X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/9c41aa9717cb095f81c6de7ddcf85b7c4fc24ce2 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 --- 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 // ============================================================================