CCVirtualCategory *CCVirtualCategory::create(__String *name, __Array *goodItemIds) { CCVirtualCategory *ret = new CCVirtualCategory(); if (ret->init(name, goodItemIds)) { ret->autorelease(); } else { CC_SAFE_DELETE(ret); } return ret; }
CCVirtualCategory *CCVirtualCategory::createWithDictionary(CCDictionary *dict) { CCVirtualCategory *ret = new CCVirtualCategory(); ret->autorelease(); ret->initWithDictionary(dict); return ret; }
CCVirtualCategory *CCVirtualCategory::create(CCString *name, CCArray *goodItemIds) { CCVirtualCategory *ret = new CCVirtualCategory(); ret->autorelease(); ret->init(name, goodItemIds); return ret; }