I have tried to initialize my NSMutableArray 100 ways from Sunday, and NOTHING is working for me. I tried setting it equal to a newly allocated and initialized NSMutableArra
I got bitten by this exception for a typo I've made, maybe it'll save someone 5 min. of their time:
I wrote:
NSMutableArray *names = [NSArray array];
instead of:
NSMutableArray *names = [NSMutableArray array];
The compiler has no problem with that because NSMutableArray is also an NSArray, but it crashes when trying to add an object.