Calvin's

Icon

designs and hacks. people and products.

cocos2d templates for Xcode 4

cocos2d custom template in Xcode4If you – like me – enjoy using bleeding edge software and have just installed Xcode 4, you will realize that all your cocos2d custom templates are now gone.  Looks like Xcode 4 has introduced a completely different convention for creating custom templates in Mac OS and all the custom templates for Xcode 3 are now gone. Ouch!

Fortunately for us, cocos2d developers are absolute superstars.  They have already provided us with new instructions to deploy our cocos2d custom templates in Xcode 4 here – http://www.cocos2d-iphone.org/archives/1412.

My preferred choice is Option B.  So here’s how it works:-

Read the rest of this entry »

Git Submodule

git submodule is an interesting way to maintain upstream repositories. Kind of similar to what I have been doing with svn repositories inside a main git repo.

In our git repo, we create a .gitmodules file and declare:

[submodule "local path to where our git sub-repository should exist"]
path = local path to where our git sub-repository should exist
url = git://remote path to our upstream git sub-repository

We can then grab the latest and greatest from this upstream git sub-repository by calling:

git submodule update --init

Nice little trick to maintain modular code and use them for various projects as required.