How to detect what SDK you are building for in Xcode

I recently had to build a file for multiple operating systems and had to figure out a way to enable a feature that is only available on Mac OS X 10.5 and greater, and Windows. Here’s how I did it: #if (MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_5) || defined (_WIN32) #include #endif Now, technically there is no harm … Read more

The Social Network

I just saw “The Social Network” with my wife. I liked the movie and so did my lady. A couple of things I came away with after the movie: 1. I remember why I became a programmer: because it’s cool 😉 No, that’s not being sarcastic. 2. My didn’t my college have programming drinking games. … Read more

Cleaning house

Today I am actually taking time to clean the house. And with that, I traded in my Xbox 360 games. I finally bought myself a PS3 and I … Love … It! The only games I have left for the Xbox is Halo and Gears of War. The only reason why I haven’t sold off … Read more