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 [...] [...]

iTunes Error 7: Missing CoreGraphics.dll

So, I get home from work today only to find that iTunes on my windows machine would not start up. I kept getting the message that CoreGraphics.dll was missing and that I should re-install iTunes. I really don’t know HOW this could have happened as I have not installed/uninstalled anything on here. [...]

C# and the readonly keyword

I came across something interesting today and thought I’d share this small bit of information to the world. While this made me scratch my head for a second or two it really does make sense. In C#, and I assume VB.NET as well, we have the keyword readonly which allows one to initialize a read [...] [...]

C# Gotcha or /Facepalm moment?

So I was playing around with a little idea and while putting together a simple class, very hastily I might add, I accidentally did something that caused a StackOverflowException to be thrown. 1 2 3 4 5 private Int32 someValue; public Int32 SomeValue { get { return SomeValue; } } [...]