X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/655719367ac5e131d9642e5783f3ecf64d1a3385..472eec8a0391538e4dcf7f7c6c4f4d44c8383616:/include/wx/cocoa/menuitem.h diff --git a/include/wx/cocoa/menuitem.h b/include/wx/cocoa/menuitem.h index 75e66b1d4c..f0e7d137d1 100644 --- a/include/wx/cocoa/menuitem.h +++ b/include/wx/cocoa/menuitem.h @@ -4,7 +4,7 @@ // Author: David Elliott // Modified by: // Created: 2002/12/13 -// RCS-ID: $Id: +// RCS-ID: $Id: // Copyright: (c) 2002 David Elliott // Licence: wxWindows licence /////////////////////////////////////////////////////////////////////////////// @@ -15,6 +15,8 @@ #include "wx/hashmap.h" #include "wx/bitmap.h" +#include "wx/cocoa/ObjcRef.h" + // ======================================================================== // wxMenuItem // ======================================================================== @@ -49,16 +51,19 @@ public: return iter->second; return NULL; } + void CocoaItemSelected(); + bool Cocoa_validateMenuItem(); protected: + void CocoaSetKeyEquivalent(); WX_NSMenuItem m_cocoaNSMenuItem; static wxMenuItemCocoaHash sm_cocoaHash; - static struct objc_object *sm_cocoaTarget; + static wxObjcAutoRefFromAlloc sm_cocoaTarget; // ------------------------------------------------------------------------ // Implementation // ------------------------------------------------------------------------ public: // override base class virtuals to update the item appearance on screen - virtual void SetText(const wxString& text); + virtual void SetItemLabel(const wxString& text); virtual void SetCheckable(bool checkable); virtual void Enable(bool enable = TRUE);