I have an array of restaurants defined in the header file
@property (nonatomic, strong) NSMutableArray *resPool; //pool of restaurants
Now I am trying to add a restaurant object to this array by doing the following in the .m file:
id restaurant = [[Restaurant alloc] initWithResName:resName]
[self.resPool addObject:restaurant];// add the restaurant to the res pool array
The resName NSArray remains empty when I run this code. I am not sure what I'm doing wring. I am just trying to pick up objective C. Can someone help me with this?