I’ve learned a lot about iPhone game programming, cocos2d for iPhone and Xcode, Objective-C and the Mac OS in the past year. I want to share my knowledge pertaining to cocos2d in specific and iPhone game development in general. I’ve created a completely new website dedicated to cocos2d over the last 2 weeks:


I made a 90+ (!) pages Tutorial about how to setup an Xcode project for professional work, including cross-referencing the cocos2d project, optimizing the build settings and adding targets for all platforms and purposes (eg debugging crashes). You can view the tutorial on my website or download it as PDF!

Since after 10 years in the game industry i’ve specialized in iPhone Game Development using cocos2d for iPhone i will always have something to say or add to this website. Let me know what you think and if you like it, please tweet it and recommend it to your peers, thank you!

Tagged with:  

Follow 1,300+ iPhone Developer Twitter users at once!

On March 24, 2010, in Good Advice, by Steffen Itterheim

Tim Haines started a Google Spreadsheet project that currently lists nearly 1,300 iPhone developers. If you want to get in on the fun, you can add yourself to the list.

Now, you might wonder, how the hell does that help me? Click on 1,300 links and follow them? No, you don’t have to that extraordinary task all by yourself! That’s what interns are for. Or even better: scripts.

David Clements wrote a Ruby script that will make you follow all the Twitterers on that list. Here’s the original blog post by David Clements.

To run the Ruby script, be not afraid as Mac OS X users already have Ruby installed. I had no previous Ruby experience and even managed to fix the script, so with my instructions you should be fine. Just open the Terminal.app and enter the following commands to download and install the Google Spreadsheet and Twitter gems for Ruby. Make sure you give each command a while to proceed, it may not seem to respond but eventually it will but it can take several seconds before you see any output. That’s normal.

Install Google Spreadsheet Ruby Gem:

gem sources -a http://gemcutter.org
sudo gem install google-spreadsheet-ruby

Install Twitter Ruby Gem:

sudo gem install twitter

Now, download or copy & paste the iPhone Developer Twitter Auto-Follow script and save it to your HD. In Terminal.app switch to that folder but wait, you can’t run it just yet. Open it in any text editor and enter your Google account username and password as well as your Twitter username and password into the variables that are set to “XXXXXX”.

Now remain two little changes to the script since the Twitter Gem has changed and broke compatibility. So we need to fix it as i described in the only issue for that script.

Locate this line:

base =  Twitter::Base.new(twitter_user, twitter_pw)

… and replace it with these two lines:

httpauth = Twitter::HTTPAuth.new(twitter_user, twitter_pw)
base = Twitter::Base.new(httpauth)

And then go look for this line:


… and replace it with this one:

base.friendship_create(matched_user, true)

If you want to follow everyone at once make sure you increase the number of iterations from 1,000 to something higher as there are currently almost 1,300 Twitterers in the list. The script says you should try to follow only few people at a time but that just seemed tedious to me and really, Twitter should be able to handle it. So i went ahead and followed everyone at once. I haven’t been punished by Twitter for it, meaning my account hasn’t been “suspended due to strange activity”. 😉

Now, still in Terminal.app make sure you’re in the same folder where you have saved the ruby script (let’s call it “iDevFollow.rs”) and enter:

ruby iDevFollow.rs

This script will run for many minutes so give it time. It should show repeated “Attempting to follow …” messages followed by “success” if everything is alright.

Of course, you can always follow me on Twitter directly and i’d be happy about that!

Tagged with:  

How to localize your App Icon’s name

On March 23, 2010, in Programming, by Steffen Itterheim

If you have an App that is localized you may want to have the App Icon show a different name depending on which language is set on the iPhone. It’s not immediately obvious how to do so but really rather simple to do.

You will have to create a .strings file in your Resources folder. Right click and select Add -> New File. In the dialog, under Mac OS X choose “Resource” and select the Strings File template. Click Next and name it “InfoPlist.strings”.

Next, right click “InfoPlist.strings” and choose “Get Info”. On the General tab click the button at the bottom that says “Make File Localizable”. The Info dialog will change, so go back to General and add all the languages your App supports by clicking on “Add Localization” at the bottom. Once you’ve done that and closed the dialog you can expand InfoPlist.strings and see a file for each language.

For each language file add the following line with the desired App name:

"CFBundleDisplayName" = "my app's name";

Et voilá! That’s it!

By the way, there’s also an easy way to test if an App’s name still fits under the Icon without being cut in half or otherwise mangled. You know it when the App’s name reads something like “My Awes..App”.

Tagged with:  
Page 1 of 41234