+(VM *)vendingMachineWithDefaultContent
{
ItemContainer *tempC0 = [ItemContainer itemContainerWithDefaultItems];
ItemContainer *tempC1 = [ItemContainer itemContainerWithDefaultItems];
ItemContainer *tempC2 = [ItemContainer itemContainerWithDefaultItems];
ItemContainer *tempC3 = [ItemContainer itemContainerWithDefaultItems];
ItemContainer *tempContainer= [[ItemContainer alloc] initWithName:@"nothing" andValue:0];
VM *tempVM = [[VM alloc] init];
[tempC0 add:[[Item alloc]initWithName:@"Snickers" andValue:25]];
[tempC1 add:[[Item alloc] initWithName:@"Trix" andValue:20]];
[tempC2 add:[[Item alloc] initWithName:@"Payday" andValue:25]];
[tempC3 add:[[Item alloc] initWithName:@"KitKat" andValue:20]];
return tempVM;
}
it will run but it will not show me the name of the item.

New Topic/Question
Reply



MultiQuote


|