Well, I know that I must be missing something obvious. Here's a sample code (which, when executed in the viewDidLoad block, unexpectedly crashes ... no error is output to the debug console).
NSMutableArray *bs = [NSMutableArray arrayWithCapacity:10];
[bs addObject:[NSNumber numberWithInteger: 2]];
NSLog(@"%@", [bs count]);
[bs release];
What am I missing?
Oh ... and in case someone wonders, this code is just trying to figure out why I can't get the NSMutableArray score, which really matters somewhere else in the program.
source
share