Quick fix to prevent a crash when running on 10.4.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59097 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -16,6 +16,7 @@
|
|||||||
|
|
||||||
#ifndef WX_PRECOMP
|
#ifndef WX_PRECOMP
|
||||||
#include "wx/app.h"
|
#include "wx/app.h"
|
||||||
|
#include "wx/log.h"
|
||||||
#include "wx/menu.h"
|
#include "wx/menu.h"
|
||||||
#endif // WX_PRECOMP
|
#endif // WX_PRECOMP
|
||||||
|
|
||||||
@@ -193,7 +194,11 @@ public :
|
|||||||
|
|
||||||
void Hide( bool hide )
|
void Hide( bool hide )
|
||||||
{
|
{
|
||||||
[m_osxMenuItem setHidden:hide ];
|
// NB: setHidden is new as of 10.5 so we should not call it below there
|
||||||
|
if ([m_osxMenuItem respondsToSelector:@selector(setHidden:)])
|
||||||
|
[m_osxMenuItem setHidden:hide ];
|
||||||
|
else
|
||||||
|
wxLogDebug("wxMenuItemCocoaImpl::Hide not yet supported under OS X < 10.5");
|
||||||
}
|
}
|
||||||
|
|
||||||
void SetLabel( const wxString& text, wxAcceleratorEntry *entry )
|
void SetLabel( const wxString& text, wxAcceleratorEntry *entry )
|
||||||
|
Reference in New Issue
Block a user