// ============================================================================
// wxMenuItemCocoa implementation
// ============================================================================
-IMPLEMENT_DYNAMIC_CLASS(wxMenuItem, wxObject)
wxMenuItemCocoaHash wxMenuItemCocoa::sm_cocoaHash;
wxObjcAutoRefFromAlloc<struct objc_object *> wxMenuItemCocoa::sm_cocoaTarget = [[WX_GET_OBJC_CLASS(wxNSMenuItemTarget) alloc] init];
return new wxMenuItem(parentMenu, itemid, name, help, kind, subMenu);
}
-/* static */
-wxString wxMenuItemBase::GetLabelText(const wxString& text)
-{
- return wxStripMenuCodes(text);
-}
-
void wxMenuItemCocoa::CocoaSetKeyEquivalent()
{
wxAcceleratorEntry *accel = GetAccel();
}
else
{
- wxASSERT_MSG(!bmpUnchecked.Ok(),wxT("Normal menu items should only have one bitmap"));
+ wxASSERT_MSG(!bmpUnchecked.IsOk(),wxT("Normal menu items should only have one bitmap"));
[m_cocoaNSMenuItem setImage: bmpChecked.GetNSImage(true)];
}
}