Exemple #1
0
RadioMenu* RadioMenu::createWithArray(const Vector<MenuItem*>& arrayOfItems)
{
	auto ret = new RadioMenu();
	if (ret && ret->initWithArray(arrayOfItems))
	{
		ret->autorelease();
	}
	else
	{
		CC_SAFE_DELETE(ret);
	}

	return ret;
}
Exemple #2
0
bool OSSet::initWithSet(const OSSet *inSet,
                        unsigned int inCapacity)
{
    return initWithArray(inSet->members, inCapacity);
}