NSMutableArray weirdness

8 Sep 2012

So… let's say you have

NSMutableArray *test = nil;

And, then, you forget to initialize it. This is one of the weirdest behaviour that I've encountered.

You can call `[NSMutableArray addObject:(id)]` without any error, and when you retrieve it, there will be nothing inside that array.

I'm sure this is Steve Jobs' idea…

Give it a kudos