The pList Dilemma – xCode Gotcha

Why does the following code return no objects in the array. NSString *path = [[NSBundle mainBundle] pathForResource:@”stations” ofType:@”plist”]; NSMutableArray* anns = [[NSMutableArray alloc] initWithContentsOfFile:path]; Here is a screen shot from within Xcode at the pList editor. The problem stems from creating the pList directly in Xcode. Here we can see a text view of the … Read more

SIGABRT – unrecognized selector sent to instance

I received an SOS from a mate asking to see why his $1,000,000 app making idea was crashing at the first hurdle. Terminating app due to uncaught exception ‘NSInvalidArgumentException’, reason: ‘-[MyAnnotation objectForKey:]: unrecognized selector sent to instance 0x73be080’ If there is one thing the last three years of xCode development has taught me, it’s that … Read more