Пример #1
0
MenuItemToggle * MenuItemToggle::create()
{
    MenuItemToggle *ret = new MenuItemToggle();
    ret->initWithItem(nullptr);
    ret->autorelease();
    return ret;
}
Пример #2
0
MenuItemToggle* MenuItemToggle::create(MenuItem *item)
{
    MenuItemToggle *ret = new (std::nothrow) MenuItemToggle();
    ret->initWithItem(item);
    ret->autorelease();
    return ret;
}
Пример #3
0
MenuItemToggle* MenuItemToggle::create(MenuItem *item)
{
    MenuItemToggle *pRet = new MenuItemToggle();
    pRet->initWithItem(item);
    pRet->autorelease();
    return pRet;
}