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; }
bool OSSet::initWithSet(const OSSet *inSet, unsigned int inCapacity) { return initWithArray(inSet->members, inCapacity); }