TableView* TableView::create(TableViewDataSource* dataSource, Size size, Node *container) { TableView *table = new (std::nothrow) TableView(); table->initWithViewSize(size, container); table->autorelease(); table->setDataSource(dataSource); table->_updateCellPositions(); table->_updateContentSize(); return table; }