void Menu::_AddCheckItem(const ValueList& args, SharedValue result) { UIBinding* binding = UIBinding::GetInstance(); AutoMenuItem newItem = binding->__CreateCheckMenuItem(args); this->AppendItem(newItem); result->SetObject(newItem); }
void MenuItem::_AddCheckItem(const ValueList& args, KValueRef result) { UIBinding* binding = UIBinding::GetInstance(); // Create a menu item object AutoMenuItem newItem = binding->__CreateCheckMenuItem(args); this->EnsureHasSubmenu(); this->submenu->AppendItem(newItem); result->SetObject(newItem); }