attach the window to cocos2d director

iPhone cocos2d Tips & Tricks

[[Director sharedDirector] attachInWindow:window];