What’s in your toolbox?

As a developer constantly striving to improve my skills and my efficiency, I am always interested to see what tools other people are using and why. Just spend 10 minutes watching another developer work on something and you are bound to pick up some new ideas. Watch that same developer for 30 minutes and you … Read more

Sandboxing – writing outside the box

Ok, Apple announced that “as of March, 2012 all apps submitted to the Mac App Store must implement sandboxing”, and since we were preparing the release of our new Set Professional desk top app, it would be a great time to introduce it. Little did I realise that I would spend all afternoon tracking down … Read more

Ambiguous errors: NSInternalInconsistencyException mutating method

Terminating app due to uncaught exception ‘NSInternalInconsistencyException’, reason: ‘*** -[NSCFArray replaceObjectAtIndex:withObject:]: mutating method sent to immutable object’ Ok, so what does it actually mean and why am I getting this on a NSMutableArray…? The error is not so much ‘ambiguous’ as downright misleading. My code clearly shows I am working with a mutable array; NSMutableArray … Read more

review: Dropbox – the bomb

I have been using Dropbox for a while now, just the cool little icon reminding me of service that keeps things ticking in the background, UNTIL today. During a coding session in xCode I found an unusual problem… We *ALL* know that whilst using any application the most frequent button sequence is CTRL+S or COMMAND+S … Read more

Ambiguous errors: oledbconnection DB_SEC_E_AUTH_FAILED

A client rang to say they are having problems with a small program I wrote. It has worked for a few months – no problem, then out of the blue they started receiving an error “DB_SEC_E_AUTH_FAILED”. Initially thoughts were security changes or user permissions, so time was spent looking into server changes. (This was a … Read more

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