small medium large xlarge

Generic-user-small
11 Jan 2011, 09:59
Ken McNamara (1 post)

Tim -

Thanks for tracking down my swapped quote. I’ve been coding long enough that I should have caught that - but as many times as I looked at it - I just never saw it.

I can see this was a problem I should have brought here first.

Hope you can clean up the clutter on the Errata page.

Thanks for your response - makes your book and your publisher all that much more valuable to all of us.

KenMc

PS - Here is the error -

I used: shoppingListArray = [[NSMutableArray alloc] initWithObjects:@”Milk”,@”Eggs”,”@Butter”,nil];

Which resulted in a EXC_BAD_ACCESS - and failure to compile.

The problem is the “@Butter” - which should have been @”Butter”

Generic-user-small
11 Jan 2011, 12:28
Tim Isted (105 posts)

Hi Ken, glad that all is now well! I’ll remove the info from the errata page. In case anyone else suffers the same problem, for the record:

shoppingListArray = [[NSMutableArray alloc] initWithObjects:@"Milk",@"Eggs","@Butter",nil];

should be

shoppingListArray = [[NSMutableArray alloc] initWithObjects:@"Milk",@"Eggs",@"Butter",nil];
You must be logged in to comment