I would like to propose the addition of a userData field in CocosNode, it would be easier to custom pointers without having to subclass a cocosNode (or any other cocosNode subclass)
Check the whole rationale and proposed patch in issue#482:
http://code.google.com/p/cocos2d-iphone/issues/detail?id=482
regards,
rolando./