Rotation Origin Point

How to set rotation origin point(x ,y) for CCSprite?

mySprite~~>setAnchorPoint); // top left
mySprite~~>setAnchorPoint(ccp(0.5f,0.5f)); // middle (default)

See http://www.qcmat.com/understanding-anchorpoint-in-cocos2d/

Big thx to Gav T

mySprite->setAnchorPoint(ccp(0,0)); // top left
this is wrong! setAnchorPoint(ccp(0,0))//bottom left