merge code from cocoGUi
Merge pull request #4 from liamcindy/cocos2d

 merge code from cocoGUi