Challenge: a grocery list

Create a new Foundation Command Line Tool named Groceries. Start by creating an empty NSMutableArray object. Then add several grocery-like strings to the array. (You will have to create those, too.) Finally, use fast enumeration to print out your grocery list.

M​y​ ​g​r​o​c​e​r​y​ ​l​i​s​t​ ​i​s​:​
L​o​a​f​ ​o​f​ ​b​r​e​a​d​
C​o​n​t​a​i​n​e​r​ ​o​f​ ​m​i​l​k​
S​t​i​c​k​ ​o​f​ ​b​u​t​t​e​r​

Get Objective-C Programming: The Big Nerd Ranch Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.