Tuesday, September 28, 2010

I did applaud

Just in case you wanted to know, unlike his brother, I was one of those who did applaud the new Labour leader’s view that Britain getting involved in the Iraq war was a mistake.

XCode - turn off logging for Release

Welcome to my first tip for iPhone developers.

If you have logging statements in your project for testing and debugging, you’ll want a way to turn them off for released code.

I have seen many complex solutions requiring custom macros and preprocessor parameters, most of them overkill IMHO.

The simplest thing to do that I have found so far is to use this technique.
Place the code-snippet in your project’s *_Prefix.pch file, continue to use the standard NSLog() macro.

NSLog statements will be automatically left out of projects compiled for release.

I hope this helps.

Wednesday, September 15, 2010

An Apology to the Workers?

The Governor of the Bank of England has just apologised to us, for the mess the policy makers and financial sector has put us in.

That’s what it sounded like in his speech to the Trade Union Congress, as reported by the BBC.

I am not currently a member of a union, but as a British worker, I feel it may have been extended to me too.

Maybe this will further encourage the redress the British people will bring upon those policy makers and financial sector he mentioned.