Changing Name of Xcode Project Doesn’t Change Name in Menu Bar

March 4th, 2011

Filed under: SDL, Xcode | Be the first to comment!

I recently changed the name of an Xcode SDL project. The change worked except for one problem. The menu bar showed the old project name as the application name. What was strange was the menus in the application menu (About App, Hide App, Quit App) showed the new project name. What was causing the menu […]


Using Xcode to Unit Test SDL Games Written in C++

November 23rd, 2010

Filed under: SDL, Xcode | Be the first to comment!

Suppose you’re using SDL to program a game. You’re writing the game in C++, and you want to write unit tests for your code. Your first instinct would be to use a C++ unit testing framework like googletest or UnitTest++. Your instinct would be correct on Linux and Windows, but the Mac version of SDL […]


Troubleshooting PNG Loading with SDL_image

April 27th, 2010

Filed under: Game Development, SDL | 2 comments

SDL_image is a library that simplifies loading image files for SDL games. One of the more popular image file formats for games is PNG, and SDL_image has support for PNG. On game development message boards, you’ll find many questions from people having trouble loading PNG files with SDL_image. This trouble has two common causes. Cause […]


SDL Tips for Mac OS X

December 29th, 2009

Filed under: Game Development, SDL | 12 comments

SDL’s most compelling feature is its cross-platform compatibility. You can use the same source code to write a game for Linux, Mac OS X, Windows, and any other system SDL supports. When people write a game with SDL on Linux or Windows and try to build a Mac version of your game, they learn that […]


SDL File Loading When Running from Visual C++’s Debugger

February 7th, 2008

Filed under: Game Development, SDL | Be the first to comment!

I was testing some texture loading code on Visual C++ 2005 and 2008. The code compiled fine, but when I ran it from Visual C++’s debugger, it crashed every time. The code crashed because the program could not find my image file so it could not read the file and load the image. But the […]