Pages

Categories

Archives

Objective-C Tip: Switch Statements

During one of my sessions of working on the iPhone game. I noticed something very strange within Objective-C. 1 2 3 4 5 6 7 8 switch(someVar) { case 1: int x = 5; // Expected expression before ‘int’   break; … } [...]

XCode: The Starting Curly Brace

As I dive deeper into the world of programming for Apple hardware I bring along with me past practices or habits that I must change in order to fit into the Objective-C world. It has been years since I last touched C/C++ and coming from a world of .NET and C#, my first impressions of [...] [...]